standalone application for WCF [duplicate] - c#

This question already has answers here:
Hosting WCF service on linux
(2 answers)
Closed 6 years ago.
I want to host a game's server on Linux - Debian8 (a VPS), but I'm having a problem: the game is written in C# and needs IIS to host the WCF part of it, which doesn't work on Linux.
Someone told me that it is possible to host a server on Debian but I should create a WCF stand-alone app.
How can I do that?
Here can you find server files which use WCF.
Could you help me with this? thanks!!

No you don't need IIS
Hosting Services
You can host in a Service console app

Related

Start an exe. via Windows Service [duplicate]

This question already has answers here:
How can I run an EXE program from a Windows Service using C#?
(9 answers)
Closed 5 years ago.
I'm currently working on a project to automatize my backup to run only under certain circumstances. Therefor I'm writing a Windows Service in C# using Visual Studios 2015. I already got my requirements set and now I can't get my Service to run sdclt.exe (the Microsoft Default Backup). I already searched for a solution but i only found people saying that Windows Services can't start .exe anymore. Does anyone here have an idea how it might still work?
Thank You
you can create BatchFile that Run sdclt.exe or use System.Thredin.Process to Run that exe. use verbs if require to run with administrator rights.

Programmatically install windows services on remote machines using C# [duplicate]

This question already has an answer here:
Programmatically Install Windows Service On Remote Machine
(1 answer)
Closed 6 years ago.
I would like to programmatically install using a give AD user / delete / check the status of a windows services using C#. I would need to constantly check the status of these dynamically created services from a remote machine.
Is there any way to achieve this ?
Thank you.
The solution provided in this threads suits my needs very well, and I have no issue in creating and managing remote services.
Programmatically Install Windows Service On Remote Machine

passing value from windows application to another one [duplicate]

This question already has answers here:
What is the simplest method of inter-process communication between 2 C# processes?
(9 answers)
Closed 7 years ago.
How to pass value from a Windows desktop application to another Windows desktop application?
I'm stuck right now. I don't want to build two different forms in one Winform application.
I need two different Winform application that communicates with each other, one of them send value to other one and the receiver processes the data.
Anyone knows how to do that?
I'd be grateful if you can help.
You need to implement interprocess communication, Please check this link What is the simplest method of inter-process communication between 2 C# processes?
in this link you can find multiple options to implement interprocess communication such as:
Windows Communication Foundation
Windows Messages
Also you can use WCF for communicating between applications. Have look WCF - Fastest interprocess communication
If you are familiar with Remote Objects using Services (.Net Remoting), then your two application can communicate using this method.
You can refer to this link:
https://www.daniweb.com/software-development/csharp/code/227615/simple-net-remoting-demonstration

Can Silverlight access USB port [duplicate]

This question already has answers here:
ASP.NET/Silverlight Control USB Device
(3 answers)
Closed 10 years ago.
I'm developing web application using MVC3 and the requirement is to access USB port. if not possible is there other way or workaround for accessing port using web browser. Please send me a sample link.
Thanks
You might find more answers if you provided detail on why your App required access to a USB port. If this Intranet, then you are talking Corporate and you have more control over the Client side. If this is Internet, it's hopeless (or should be).
Yes - it is possible. Silverlight 5 can access the Win32 API using PInvoke (platform invocation). The Silverlight application must be a trusted application.
Here's an example (there are lots of others, Google it):
http://blogs.msdn.com/b/silverlight_sdk/archive/2011/09/27/pinvoke-in-silverlight5-and-net-framework.aspx

Code isn't executing in windows Service [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to start a process from windows service into currently logged in user’s session
c# windows service
I have this code in the OnStart Method of the windows service.
System.Diagnostics.Process.Start("notepad.exe");
I am successfully able to start the windows service. However once the service has successfully started it doesn't open the notepad.
This is a strange problem and as i am new to windows services, help is required.
Windows services don't execute in the same context as the desktop.
Hence you won't see the application running in explorer like you would if you launched it normally.

Categories