I'm trying to create a new ASP.NET MVC 4 Web Application, when this message pops up after selecting a project template (eg Empty) and pressing OK:
I am running Windows 8 Professional with Visual Studio 2012 Professional.
So far I've tried a few minor things:
devenv /setup
from the Developer Command Prompt None of the above steps has helped, so something is probably broken somewhere.
Has anyone experienced something similar to this before? Any ideas would be greatly appreciated.
Feel free to ask for more information, logs or whatnot if you require it :)
That would work, but it's not the safest thing to do.
The MVC wizard is a shared component in VS, ie. There is one copy of the DLL that lives in Common7\\IDE.
When you installed the 2012.2 update, and then installed another SKU altogether, you have the old templates from the new SKU with the new wizard. What you should do in this situation is the following:
Jacques
From Jacques (who writes the installers):
Sounds like the files are missing from the project template cache.
If he has everything installed then he could try the following
If the cache doesn't rebuild then there is something more serious wrong on the system.
This happened to me after I installed VS 2012 Pro on a machine with VS 2012 Express (and vice versa). The thing is they were using different versions of MVC 4 templates. One was using:
The other:
You can check it here:
VS 2012 PRO
C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\Common7\\IDE\\ProjectTemplates\\CSharp\\Web\\1033
VS 2012 Express
C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\Common7\\IDE\\VWDExpress\\ProjectTemplates\\CSharp\\Web\\1033
I ended up reformatting my machine (before realizing they were using different versions) but this time I installed VS 2012 PRO first and then VS 2012 Express however, I had the same issue. So I copied the *ProjectTemplatev4.1.cshtml files to
C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\Common7\\IDE\\VWDExpress\\ProjectTemplates\\CSharp\\Web\\1033
and it fixed the problem.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.