I experienced the same problem as this popular question where I would receive the following error when my ASP.NET MVC project's Output Path
was set to anything but \bin
:
Could not load type 'MvcApplication'
My question is, why does changing the Output Path
fix this error? I have build configurations for each environment I deploy to and I would like to keep the builds segregated (DEV builds to \bin\Debug
, QA builds to \bin\QA
, etc). Is there any way to fix this so I can keep separate build Output Path
s but not get this error?
This issue has been happening since at least 2009 (based on when that question was asked), which leads me to believe it might be an intentional design decision rather than a bug...