Article ID: 823942 - Last Review: February 11, 2006 - Revision: 1.5 BUG: "The specified service has been marked for deletion" error message when you reinstall a service in Visual Studio .NETSYMPTOMS
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:
The specified service has been marked for deletion
CAUSE
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. WORKAROUND
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. STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section of this article. MORE INFORMATION
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 Translations
|
Back to the top
