Steve Clements

.Net and then some....


News



MCP

Add to Google
Add to Technorati Favorites



Subscribe to this Blog by Email


this is Steve's profile
Locations of visitors to this page

My Stats

  • Posts - 119
  • Comments - 98
  • Trackbacks - 52

Twitter












Tag Cloud


Recent Comments


Recent Posts


Archives


Post Categories


Image Galleries


Fav Blogs


Fav Places


Services!


Top Kudos



System.ComponentModel.Win32Exception: The specified service has been marked for deletion.

This is the first time I have ever seen this error and it may well have been complete luck that I haven't as there seems to be a pretty solid reason why it occurs.

It popped when I uninstalled a service using InstallUtil.exe, then tried to install again using the same utility.  Because I had the Windows Services window open (apparently it can also happen when you run uninstall without stopping the service as well, but seriously, who would be so reckless! ;-) ) when executing the uninstall there are some registry keys that are not deleted so when you try an install again the error occurs.

The simple solution was to close the windows services window and run uninstall/install again...Bingo!

 


posted @ Sunday, April 27, 2008 7:09 PM | Filed Under [ .NET 3.5 .NET ]

Comments

No comments posted yet.
Post a comment





 

Please add 8 and 3 and type the answer here: