Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
389 views
in Technique[技术] by (71.8m points)

asp.net mvc 5 - 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.0Common7IDEPrivateAssembliesMicrosoft.VisualStudio.Web.Internal.Contracts.dll
  • C:Program Files (x86)Microsoft Visual Studio 12.0Common7IDEPrivateAssembliesMicrosoft.VisualStudio.Web.WindowsAzure.Contracts.dll
  • C:Program Files (x86)Microsoft Visual Studio 12.0Common7IDEPrivateAssembliesMicrosoft.VisualStudio.Web.WindowsAzure.Explorer.dll
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.0Common7IDEPrivateAssemblies, 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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...