Could not stop C# Windows Service with Server Explorer

  • Thread starter Thread starter Marco Liedekerken
  • Start date Start date
M

Marco Liedekerken

Hi,

When I try to stop my C# Windows Service I get the message "Couldn't perform
the requested operation for service ....".
Other posts suggest that it has something todo with the config file (putting
RemotingConfiguration.Configure(AppDomain.CurrentDomain.SetupInformation.Con
figurationFile) in the OnStart of the service or putting the file in the
<%WINDIR%\system32> directory would resolve the problem ).
I don't have a normal config file (only a settings.xml file which is not
used when stopping the service) so I don't know what the problem is for me.

Any suggestions?

Thanks, Marco
 
Sounds like your code is hitting some kind of deadlock/infinite loop in the
OnStop method. Have you tried debugging or tracing to lock down where the
error is occuring?

--
Jared Parsons [MSFT]
(e-mail address removed)
This posting is provided "AS IS" with no warranties, and confers no rights.
OR if you wish to include a script sample in your post please add "Use of
included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm"
 
Back
Top