Can’t Add View from Controller in VS 2015 : “There was an error running the selected code generator”
Try clearing the ComponentModelCache, the cache will rebuild next time VS is launched. Close Visual Studio Delete everything in this folder C:\Users\ [your users name] \AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache Restart Visual Studio 14.0 is for visual studio 2015. This will work for other versions also.