?
Solved

Error in VS2008

Posted on 2009-05-15
1
Medium Priority
?
163 Views
Last Modified: 2012-05-07
Hello Experts,
I am opening a .sln file in VS2008 and running that. The error thrown reads : "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."

Help me!!
0
Comment
Question by:beginner2009
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 13

Accepted Solution

by:
iHadi earned 1000 total points
ID: 24398055
Your opening a solution with a class library project. That means when you run the project, it tries to launch a dll instead of exe, and that's why you are getting this error.

dlls are designed to be used by exes and cannot run by them selves. Look for another project in your solution in the solution explorer, right click on it and select 'Set as startup project'.

If there is no other project that can be run, then you have to add your own project , add a reference in ti to the class library and write code to use the class library.
0

Featured Post

WordPress Tutorial 3: Plugins, Themes, and Widgets

The three most common changes you will make to your website involve the look (themes), the functionality (plugins), and modular elements (widgets).

In this article we will briefly define each again, and give you directions on how to install them.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question