Fix: A project with an Output type of Class Library cannot be started directly | Learnxpress

Fix: A project with an Output type of Class Library cannot be started directly

April 27th, 2009 Anand Narayanaswamy 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

 

If You Like This Post, Share it With Your Friends & Peers

Digg
stumbleupon
Delicious
facebook
twitter
reddit
rss feed bookmar
   

6 Comments to “Fix: A project with an Output type of Class Library cannot be started directly”

  1. Yoav says:

    Thank you so much!

  2. [...] Read More Posted Tue, Aug 4 2009 12:50 by anandn Filed under: visual studio [...]

  3. Bobby says:

    Thank you, it worked!!

  4. Alex says:

    Thank You!

  5. Salim says:

    Thanks alot dear!!!
    IT WORKED

  6. Babak says:

    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.

Leave your comment here:

Terms

  • C# project output type
  • a project with an output of class library cannot be started directly in order to debug this project add an executableproject to this solutionwhich references the library project
  • a project with an output class
  • how to set the executable project as a startup project in class library
  • project with an output type of class library cannot be started directly
  • a project with an output type of class library cannot be started directly asp net
  • a project with an output type of class library
  • how to see class library output asp net

  • 1
  • studio debug output type of class libraray
  • visual studio a project with output type of class cannot be started
  • changing output type in visual studio
  • a project with an output type of class cannot
  • Output type of class library aspnet
  • a project with an output type of class

  • a project with an output type of class library cannot be started directly

  • 0
  • see class library output asp net
  • how to debug class library project
  • Project Type WPF Class library in VS2008
  • seo forum


Google Analytics Alternative