I need a way to exchange data between a process and a windows service.
The process (Windows Form Application, Console Application, in the future also a Web Solution) needs to instruct and interact with the windows service.
I want to know which way is the best to accompplish this.
I'll write the solution in C#, .NET Framework version do...
What's the best way to build a service to handle queued long-running processes? For example, this is what we're trying to do
User uploads 401k data to web
Data goes into processing queue (a database table)
401k is processed (could take a couple minutes per client)
User is informed via e-mail that 401k was accepted
We could certainly...
Hi all,
I havent written a windows service before and thought everything was going well until I deployed it to live. In dev it works fine and the polling it great, but as soon as it goes into production it falls on its backside after its first loop.
The exception I recieve is:
Application: ProgramName.WinService.exe
Framework Version:...
How to access internet location with domain username/password from windows service running in local system account if system is not in domain.
I hava a windows service running in local system account and there is a filesystem watcher which is watching a internet location which is accessible using domain username/password.
Now i want th...
is there any way to set priority for services at start up?
I want my local area network to start befor other network-related services.
...
I have created a Windows Service that has a function that creates a new file.
It is running under "Local System account" with "Allow service to interact with desktop" set to true.
When running under this account can files be created locally?
I can't debug this to get the exact error as it is running in a Lab Manager environment that h...
I'm in the process of designing the architecture of an application I’m planning on building and need some advice on the best way to implement a specific windows service component described below. I'll be building the service using .net 4.0 so I can take advantage of the new parallel and task APIs, I’ve also looked at using the MSMQ servi...
I need to create a small app which will run on my client machines as "agent" which will periodically check in with a server for certain tasks.
Do I
Create the app as a windows service with an interface for configurations?
Create an app which will run in system tray, with an interface for configuration?
Many moons ago I read that wi...
I'm developing a window service to send email through MAPI, utilizing the MAPI33.dll library.
I installed the service in Windows Server 2003 and it works well, even with a MS Outlook application running in foreground.
However, when I login into the server through Remote Desktop session, I'm getting error MAPI_E_FAILONEPROVIDER at the O...
Hello. I have written a persistent windows service in java that runs on boot. I have also written a GUI monitor in java that loads on user login. I would like to be able to have multiple instances of the GUI monitor connect to and control the single backend service via the observer pattern. All of the logic is already implemented wit...
I have developed a windows service using .net . My service makes some calls to unmanaged code like follows -
[DllImport("cmxConnect.dll")]
private unsafe static extern String cmxQuery([MarshalAs(UnmanagedType.LPStr)] String s, long* connPointer);
I have placed cmxConnect.dll within the same folder as the service executable. The servi...
After searching the web for information, I have managed to create a service which, depending on the command line, can install or uninstall itself, or just run as an application.
However, the uninstalling code isn't working correctly.
The related code:
Private Function UnInstallService(ByVal args As String(), ByRef errMsg As String) As...
I have a windows service that spawns off around 60 threads when it starts. I am using Nagios for general monitoring and I have all necessary routines to send data to nagios. However, I cannot figure out how to get a sum of all threads and make sure that none of them are dead.
Basically what I want to do is:
foreach(thread t in threadP...
I am trying to attach to a windows service using the Visual Studio 2010 --> Debug --> attach to process command. When i scroll through the list of processes my windows service is greyed out and the attcah button is also greyed out. I have tried changing the service account to loacal service, my account, etc but it remains greyed out. Any...
I have a simple Windows Service hosting a WCF Service. I want to run the Windows Service under the LocalService account (or even the NetworkService account). However when I try to start it under either of these accounts it starts then immediately stops. It starts and runs OK under the LocalSystem account. Any thoughts as to how to wo...
I have a website that occasionally needs to have a handful of the tables in its database updated. The updates come from another system that exports to comma delimited text files. I can then either FTP the text files to the web server, send them in through an admin upload page, or manually log in to Remote Desktop to download the text fil...
I've created and configured an SSL certificate as per these instructions from MSDN. I'm getting the error message that this question lists, but am not sure how to map the accepted answer in that question to my App.config file. The content of the config file, and the service itself worked correctly over http, it's just over https that the...
As in the following link, one can stop, start, and "stop, then start" a service using C# code.
http://www.csharp-examples.net/restart-windows-service/
I have baked a .Net service that does implement OnStart and OnStop. However, I need to implement a "smart restart" functionality which is more involved than just stopping and then starti...
I want to create a windows service, and I am not sure whether to write it on c sharp or c++. I wander if you create the service in c#, do I need to have the whole .net framework installed on the client?
If I do it in c++, as a clr application, it will use the .net framework and it will be managed code. Does that mean that the .net framew...
I have a windows service that is, intermittently, throwing an exception that sometimes kills its SQLConnection, and other times kills the service completely. It is running live on a customer's site.
I have planned to use Windbg + SOS on it to get a crash dump, so that I can debug this at my own leisure.
On my first attempt, however, th...