Friday, November 30, 2007

Cannot start service from command line or a debugger. A windows service must first be installed (using installutil.exe) and.......

"Cannot start service from command line or a debugger. A windows service must first be installed (using installutil.exe) and then started with ServerExplorer, Windows Services Administrative tool or the NET START command."

This message is due to the web project is not your start project. I think you have more than one projects in a solution and the asp.net web project is not your start up project.
To make the web project as start up project you can do the following steps:
  1. In Visual Studio, go to Server Explorer window. If the server explorer window is not found you can find it from View menu.
  2. Right Click in the Web Application project shown in your server explorer and select "Set as Start Up Project" option from menu.
We can easily identify the start up project by its name style. If a project is the start up project of your solution then its project name will be shown in bold. If we have not set a project as the start up project, Visual studio will set the current selected/active product as start up project.

For this issue Visual studio will give the following error message...

0 comments: