Unable to create new MVC project in Visual Studio 2013

Posted by on Jun 27, 2014 in Asp.net, MVC

I recently had a problem in Visual Studio 2013 whereby I couldn’t create a new MVC project. When I tried, an empty solution would be created and a dialog box would be shown with the following:

System cannot find the file specified (0x80070002)

After a bit of digging about, it appears this occurs when there is an issue with Nuget – either a faulty installation or its somehow been corrupted. Thankfully fixing it was as simple as you’d imagine. In visual Studio 2013 go to:

Tools=> Extensions and Updates => Installed => Nuget Package Manager for Visual Studio 2013 => Uninstall

Close VS when you’re asked to restart it and then download a fresh copy from here by ruinning the VSIX file:

Nuget from the Visual Studio Gallery

Once the installation is complete, it should be working again…

Hope that helps!