none
Failed to stop window service in Windows server 2003 RRS feed

  • Question

  • Hi,
    We are using a .Net window service to create Customized Microsoft Project Plan 2000 through our application with frond end as ASP.Net
    1)When the users trying to create the MPP , Windows service "WinserviceMPP.exe" is invoked to create it programatically.

    2)" WinserviceMPP” windows service internally calls “Winproj.exe” to do the operations on the Microsoft Project Plan.

    3)The process of Instantiation and stopping the above mentioned services will be done programmatically by the application.

    4)In normal scenario the process is working fine and MPP can be generated without any issues.

    5)But, in certain scenarios Creation of MPP is not happening properly.

    6)When we verified in the Windows event Log, the error message is logged as “Failed to Stop Service”. These type of scenarios are coming continuously, and users are facing problems in creating the MPP.

    7) When the system is failed to stopping the service, we are manually killing the service i.e stopping the service in task manager. As soon as we killed the service, MPP is creating with proper data. This means system is unable to stop the service.

    8)These type of “Failed to stop service” errors coming randomly and when manually stopping the “Winproj.exe” service MPP is creating successfully.

    Wednesday, October 7, 2009 11:38 AM

Answers

  • Did you monitor your system and have seen that the OS is running low on memory at the time your service cannot be stopped?

    If yes, then replace your antivirus, increase your page file size, try to handle OOM in your application or just add more RAM to your machine ... There is not much else you can do when you are running out of memory. Or what type of answer did you expect? There is no magic generic answer to solve low memory problems.

    -Karel
    Thursday, October 8, 2009 4:42 PM
    Moderator

All replies

  • Do you own the service which cannot be stopped? If yes, debug it and find out, why it cannot be stopped some times (maybe you need to change timeouts or something like that). If you don't own it, contact support for that service and ask them why their service cannot be stopped in your scenario.
    If you need help with debugging services, then ask on related forums (this is wrong forum for such question and I don't know which one is the right one).

    Also nothing in your description hints that .NET has any impact on the process above. Unless you find out that it is .NET fault that the service cannot be stopped, I would suggest to look at the problem as any other Windows service problem.

    -Karel

    Wednesday, October 7, 2009 5:35 PM
    Moderator
  • Whether this problem is because of the windows 2003 server memory.Becasue recently we installed symantec end point protection as Anti virus.
    Thursday, October 8, 2009 4:21 AM
  • What does Symantec Anti-virus have to do with this? Why should it be problem with Win2003 memory? (Did you mean memory management?)
    Thursday, October 8, 2009 7:45 AM
    Moderator
  • We are using the MPP creation through window service since 2004.Till then we didn't face this type of problem.
    In one of the site i read that "It consumes a lot of memory and CPU resources - this is 'symantec end point protection' main disadvantage".So while stopping the windows service through program, becasue of insuffient memory-- system is not able to stop the process.Some times the stopping of the service is working absolutely well.
    Thursday, October 8, 2009 9:34 AM
  • Did you monitor your system and have seen that the OS is running low on memory at the time your service cannot be stopped?

    If yes, then replace your antivirus, increase your page file size, try to handle OOM in your application or just add more RAM to your machine ... There is not much else you can do when you are running out of memory. Or what type of answer did you expect? There is no magic generic answer to solve low memory problems.

    -Karel
    Thursday, October 8, 2009 4:42 PM
    Moderator