Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

this template attempted to load component assembly Microsoft.VisualStudio.Web.Project

I just installed Visual Studio 2013 Ultimate trial version for completing the MVC5 tutorial by Rick Anderson, which worht doing it. The tutorial: http://www.asp.net/mvc/tutorials/mvc-5/introduction/getting-started.

However, I created a blank solution first and then try to add an ASP.Net Application project, which is going to be my MVC5 tutorial project. And I got this weird message:

Error: this template attempted to load component assembly 'Microsoft.VisualStudio.Web.Project, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. For more information on this problem and how to enable this template, please see documentation on Customizing Project Templates.

But I´m not customizing, I´m just creating a project out of a built in template.

Do you know how can I solve it?

like image 524
Ricker Silva Avatar asked Dec 04 '13 21:12

Ricker Silva


2 Answers

Here is the solution:

  1. In Visual Studio 2013, select Tools > Extensions and Updates
  2. Check for updates. You should have the Azure SDK update available.
  3. Download and install the Azure SDK. After this, everything should work fine.

If your updates are not turned on, enable your auto detection of updates in Tools > Options > Environment > Extensions.

If you have unspecified error related to E_fail(code), try this:

  1. When creating a new MVC 5 application, change the framework version from 4.5.1 to 4.5, if that did not work change it to 4. Check the below image if it is not clear.

enter image description here

Another approach: This is really important if you are installing Visual Studio 2013 on un-updated Windows 7.

there reason i am calling out "not updated is", The reason that 'un-updated' matters is because Visual studio 2013 does not update the powershell that is required by VS2013 for most of the stuff.

The simple solution is to update Powershell to the latest version.

If you are not sure how to update powershell, you can use this tutorial.

like image 71
Avi Avatar answered Nov 13 '22 12:11

Avi


So I stumbled upon this issue as well and would like to share how I was able to resolve this problem.

Tools -> Extensions and Updates -> Online -> NGet Package Manager: Click the download button once you have the NGet Package Manager selected. Make sure to restart your Visual Studio after you have downloaded the Manager.

This should do the trick

like image 44
Green Avatar answered Nov 13 '22 13:11

Green