Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't create new MVC5 project or any other ASP .NET projects in Visual Studio 2013

When I attempt to create a new MVC5 project, I get a template selection dialog that doesn't load any options. I am unable to select a project type (ex. MVC, Web forms, Web API) and create the project.

It appears like this: http://i.imgur.com/OVLZfSj.png

To produce this issue, I go to File -> New Project -> Visual C# -> Web -> ASP .NET Web Application

After clicking OK, the point where I select the ASP .NET project template I want just sits there empty.

I am running Visual Studio 2013 Ultimate Update 3 and have tried the following:

  • Safe mode
  • Resetting Visual Studio
  • Running devenv /installvstemplates
  • Running Repair via Setup

UPDATE: This has been resolved for me by xinqui's response below. I deleted the following 3 files and am able to create new ASP .NET Web Application projects now!

  • C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies\Microsoft.VisualStudio.Web.Internal.Contracts.dll
  • C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies\Microsoft.VisualStudio.Web.WindowsAzure.Contracts.dll
  • C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies\Microsoft.VisualStudio.Web.WindowsAzure.Explorer.dll
like image 227
altOnTab Avatar asked Aug 12 '14 17:08

altOnTab


People also ask

How do I create a new MVC Project in Visual Studio 2013?

Click New Project in the Start page or in the File menu. In the New Project dialog, click Web in the left pane and ASP.NET Web Application in the middle pane. You can choose Cloud in the left pane to create an Azure Cloud Service, Azure Mobile Service, or Azure WebJob.


1 Answers

I'm from Microsoft web platform and tools team. In all of the problem reports we get, we find that there are several extra assemblies that did not get removed from installation process. Even we still don't know which installation process sequence caused the issue yet, we've be able to solve the problem by the following steps. Please try the workaround and let us know if it doesn't fix your problem. Thank you very much for all the support.

  1. Close VS.
    Goto C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies, delete the following assemblies if they exist: Microsoft.VisualStudio.Web.WindowsAzure.Contracts.dll Microsoft.VisualStudio.Web.WindowsAzure.Explorer.dll Microsoft.VisualStudio.Web.Internal.Contracts.dll

  2. Start VS2013 with update 3, try to create a ASP.NET Web application, see if the template exists and project can be created successfully.

like image 152
xinqiu Avatar answered Oct 19 '22 14:10

xinqiu