Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"System cannot find the file specified" while creating a new MVC4 project

Opening visual studio 2012,
File > New Project > ASP.NET MVC 4 Web Application, Razor as the view engine

  • Error number: 0x80070002
  • Visual Studio Ultimate 2012 & up-to-date

error number 0x80070002

Edit:
http://forums.asp.net/post/5373941.aspx
Didn't work.

Any Ideas?
Thanks in advance!

like image 585
Gal Margalit Avatar asked May 25 '13 11:05

Gal Margalit


3 Answers

I ran into this same error on VS2013.
Maybe this also works for vs2012

Run the NuGet.Tools.vsix.exe file under C:\Program Files (x86)\NuGet\Visual Studio 12
Start vs2013 again and you should be able to create the mvc project.


Source:
Check under temporary solutions on http://connect.microsoft.com/VisualStudio/feedback/details/793578/cant-create-an-mvc4-project-in-visual-studio-2013-preview


like image 81
BvD Avatar answered Sep 23 '22 07:09

BvD


Downloading Asp.net & Web tools solved the problem.
AKA: Clicking "Get Everything in One Simple Install"
http://www.asp.net/downloads

like image 1
Gal Margalit Avatar answered Sep 21 '22 07:09

Gal Margalit


I run into this problem after installing ASP.NET and Web Tools 2012.2. I solved it running repair mode from Visual Studio 2012 installation setup.

like image 1
Claudio Redi Avatar answered Sep 22 '22 07:09

Claudio Redi