Cannot add a MVC controller VS2012 gives “object reference not set to an instance of an object”
问题 I have searched extensively and cannot find another person on the planet with this problem... The symptoms are: In Visual Studio 2012, on a MVC 4.0 Project that was upgraded from VS2010 and is configured for dual version editing from VS2012 and VS2010. When I right-click on the Controllers Folder and select Add->Controller... from the context menu, I get an "Object reference not set to an instance of an object" error from Visual Studio. The existing code in the project runs fine, and if I use