Solved

Error in VS2008

Posted on 2009-05-15
1
158 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
1 Comment
 
LVL 13

Accepted Solution

by:
iHadi earned 250 total points
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Foolproof security solutions has become one of the key necessities of every e-commerce or Internet banking website. If you too own an online shopping site then its vital for you to equip your web portal with customer security features that can allow…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
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.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now