Does anyone know how to get the PID of the process that a windows service is running in from Nant?
I am having file locking problems. I issue a stop command to the service and then try and delete the Windows service's files. However these are quite often locked by the process that the Windows service is running in. I want to find the PI...
I have stumbled upon a situation where I cannot start more than a certain number of .Net windows services. Our software system is as set of 8-9 windows services and I want to create 5 logical environments on one machine (i.e about 40 services). To reproduce the problem and to prove that it is not an application issue I created a simple w...
Let's say I have a windows service job, and it is running halfway when I try to shut it down ( net stop service).
What would happen? Will the job continue to execute until it's finish, only then shut down, or it will abort the job halfway even though it is still in the midst of writing to database?
...
Hello,
I am running on a Windows Server 2003. This is my problem:
I wrote a Perl script to automate the copy of some files from my Server machine to some network drives. I am using xcopy to copy the files. My problem is the permissions.
If I run the script from the command line, it works, all the copies are successful.
If I try to ru...
Hello,
I am trying to debug a windows service in Visual Studio 2005 on a Windows XP machine. I can install the windows service and start it from the admin console. However, the process appears disabled in the list of available processes and I cannot attach the debugger to it. What can I do to enable the process in the list of available ...
I have developed a windows service using visual studio 2008 and .net fw 3.5.1
I set the StartType of the service installer to Automatic. When I install the service in a Windows Server 2003 the service appears with the StartType set to Automatic. So far so good, but... when the server is restarted the service doesn't.
What might be happen...
When my ProjectInstaller : System.Configuration.Install.Installer is called by the Setup project the current path is c:\windows\system32. How can I get the path where the application is being installed without hard coding this to the project ? (the destination path is something like c:\program files\[manufacturer]\[service name])
...
I know this question has been asked twice.But both of them didn't help me.My code is working fine like onstart is for initialization the timers etc.
I have C# windows service which is running as some accnt not local.
Im currently using CCtray to deploy and start the service so it doesn't give me any error.
But sometimes manually I need t...
Hello,
How do I install a Windows Service programmatically without using installutil.exe?
Thanks
...
HI guys,
I have designed a windows service in C# and it takes time to start(60-70 sec).I was wondering does it generally take that long to start or it is my code which is taking that much time.
I have two threads which runs every 6 seconds and 1 minute.
And if it takes that much time, can somebody tell me why it takes that much time.
No...
For one project reason I want to make my Microsoft Outlook Application to run as a service meaning that when i log off my pc it doesn't close.
Trying to achieve this I decided that maybe it can be easier to build a Windows Service that calls the outlook application to open in its onStart Method.
Can anyone redirect me in the right path ...
I'm writing a Windows Service using C# .NET 2005. How can I determine who the currently logged-on user is (if any)? Also is there a way to be notified when a user logs on?
Alternatively, is there a way to know who has recently used the machine?
I need to know the currently logged on user so I can cache some data for that user. Operatin...
I am working on a project that requires sandboxing an application. I am able to create a windows user, create a directory, fill the directory with an application, and run the application as a user. This works completely fine running as a console application, but when I install it as a service, I get this exception:
System.ComponentModel...
I am building a Windows Service which will be deployed on four servers. My user wants to have the service read a configuration file from a common location, and load it OnStart.
I want the installation to prompt the user for the file path and file name to the configuration file when the service is installed, and then save that data in M...
Is it possible to create a windows service in vb6? if yes, how?
...
My WCF service is IDisposable because it uses a ReadWriterLockSlim. When I dispose both of them in the following method:
public void Dispose()
{
lockSlim.Dispose();
}
Some of the public methods are still running (or accepting new connections, I don't know), and it fires exceptions because of the attempts of using disposed objects ...
I have run into a brick wall with a Windows Service I wrote. The Windows Service is a proxy server for Internet Explorer. I am using the C# proxy from Mentalis (http://www.mentalis.org/soft/projects/proxy/) with some minor tweaks to make it run as a service.
IE can connect to my proxy and get the webpage it wants without any problems bu...
Hi, I would like to achieve the following. I have a C# server application which is run by a Windows Service. The service currently requires that the server application is located in a specific directory.
Is it possible to create a Windows Service that takes a directory at start and run the application in that directory? How do you do t...
I have a WCF service running locally hosted by a windows service on machine A.
I have an ASP.NET application hosted in IIS on machine B.
My question is this, if I run the ASP.NET application via a browser on machine A, will it be able to consume the local WCF service?
...
Say, you have a custom Windows service installed on a server. The service is written using .NET, and it is installed using either InstallUtil, an MSI package or the ManagedInstallerClass (if it makes a difference, pick the one that solves the problem). Regularly, you will need to deploy changes to the service, and of course you want to m...