Fix: A project with an Output type of Class Library cannot be started directly
April 27th, 2009
6 Comments
You will sometimes come across the following error in a message box if you execute an ASP.NET application using Visual Studio 2005/2008
A project with an Output type of Class Library cannot be started directly. In order to debug this project, add an executable project to this solution which references the library project. Set the executable project as the startup project.
Resolution
In order to fix the above error, right click the Solution name in Visual Studio 2005/2008 and select Set as StartUp Project option from the popup menu.
Applicability
Visual Studio 2005
Visual Studio 2008










6 Comments to “Fix: A project with an Output type of Class Library cannot be started directly”
Thank you so much!
[...] Read More Posted Tue, Aug 4 2009 12:50 by anandn Filed under: visual studio [...]
Thank you, it worked!!
Thank You!
Thanks alot dear!!!
IT WORKED
It did not work. This has worked for me in the past, but not this time. I have r-clicked on default.aspx, I have chosen it as the startup page, and I have default.aspx open as I hit the debug button.