Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
BUG: "The specified service has been marked for deletion" error message when you reinstall a service in Visual Studio .NET
Article ID: 823942 - View products that this article applies to.
When you try to reinstall a service in a Microsoft Windows Service application on a Microsoft Windows 2000-based computer, you may receive the following error message:
When this problem occurs, the service is not reinstalled.
The specified service has been marked for deletion
This problem may occur if the following conditions occur in this order:
In Windows 2000, services are not completely deleted until the computer is restarted. Although you do not receive a prompt to restart the computer after you remove the service, you must restart the computer before you reinstall the service.
Note If you remove the service by using an executable (.exe) file, you receive a prompt to restart the computer.
To work around this problem, restart the computer before you reinstall the service.
Note If you first verify that the service is stopped, and then you quit the Microsoft Management Console (MMC) before you remove the service, you may be able to reinstall the service without restarting the computer.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section of this article.
For more information about how to add a service and about how to remove a service in a Windows Service application, see the "Walkthrough: Creating a Windows Service Application in the Component Designer" topic in the Visual Studio .NET documentation in the Microsoft Developer Network (MSDN) Library.
Article ID: 823942 - Last Review: February 11, 2006 - Revision: 1.5