asp.net mvc - A project with an Output Type of Class Library cannot be started directly. -


when try run application, ge the following error; enter image description here

i know issue has come many times, , usual answer right click on appropriate project , make start project.

well have done , not fix it.

my application mvc application, start project should class library.

it working fine until tried upgrade mvc5.

i working on vs 2012.

i wondering if problem caused unloading , reloading csproj file edited part of upgrade?

i think might have if there multiple projects in solution. getting same problem when had mvc project , testing project in same solution. fixed me setting mvc project startup project. done right clicking on mvc project , selecting "set startup project".

this works vs2013 professional


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -