Solved

Error in VS2008

Posted on 2009-05-15
1
161 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 250 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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
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…
This video teaches users how to migrate an existing Wordpress website to a new domain.

726 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