Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
By mistake i have deleted my project .sln file. how can i recover it. Building my website again and again also don't help. please help me.
following error comes when i try to Debug my project:
A project with output type of class library cannot be started directly. In order to debug the project add an executable project to this solution which references the library project. Set the executable project as Startup Project. ( My project is 3- Tier).
Posted

1 solution

Create a new blank solution and add your project to that. That should do what you asked for.

Btw the error message that you have indicated isn't because you do not have a solution file. It is because your startup project is setup as the library project (either your business layer or data access layer). Once you have added your projects to the solution, right click the web application project and set is as start up project. That should solve your problem.

Hope it helps!
 
Share this answer
 
Comments
Rambo_Raja 27-Jun-13 5:14am    
cheeers!...it works!thnx;)
Ankur\m/ 27-Jun-13 5:28am    
Glad to help! :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900