user2949042
user2949042

Reputation: 365

error message after editing applicationhost.config file

After I updated some informatiion in applicationhost.config file(not actually add anything, I removed the lines I added and changed it as default), after that when I launch my mvc web apps in vs2012, I got this error,

"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"

Any idea?

Upvotes: 0

Views: 92

Answers (2)

Leo
Leo

Reputation: 14830

Are you pressing F5? If so, you must set the start-up project correctly. You will be to go to the solution explorer, right-click the MVC Web App and select "Set as StartUp project". See screenshot below...

enter image description here

Upvotes: 1

Hasib Tarafder
Hasib Tarafder

Reputation: 5813

Please go to the solution explorer then right click the mvc project and click the "Set as Start up project" then run the project.

I hope your problem will be solved

Upvotes: 1

Related Questions