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...

Related Posts:

  • Modifying Query String in .net Sometimes we need to modify the query string values of URL. For Example : Consider our Current URL is : http://www.mysite.com/MyHomePage.aspx?Value=x and, we want to change it as : http://www.mysite.com/MyHomePage.aspx?… Read More
  • new keyword in C# In C# the “new” keyword can be used in 3 different ways, as operator, modifier and constraint. We all are familiar with new operator usage, i.e. for creating object and invoking constructor.  But other two usages are n… Read More
  • Windows Authentication in WCF Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 … Read More
  • Changing the Page Title from server side in ASP.NETSome times we need to change the page title of the page from the server side code. For this, there are two simple methods to set the the page title.We can directly assign the page title form server side as Page.Title="MyPageT… Read More
  • Cairngorm and MVVMNow everybody is changing to RIA(Rich Internet Application). Formally there was only one a matured platform, ie Abode Flex. But in .net framework 3.0 Microsoft came up with new technology SilverLight. After a one and half yea… Read More

0 comments: