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
Thank you so much!
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.
This did not work for me. What I did was I took a project written on VS2008, converted it to VS2010, and got the error on debugging. When I attempted the resolution, I still got the error. So how would this work in VS2010, or can VS2008 projects that get converted to VS2010 lose debug cappabilities?
Thanks.
Works in vs2010 too, for reference.
Thanks !!!
THANKS!it works!!
thanks alot…
Thanks a ton, it solved one of my big problem in running the code and debuggin it !!!
Thankyou. It Works!
Thank you! 😀
It workds!