NuGet error on creating MVC4 Project in VS 2012

asp.net Mvcasp.net Mvc-4Visual Studio-2012Nuget

asp.net Mvc Problem Overview


I tried to create a MVC4 empty project in VisualStudio 2012 Ultimate, but I got this error:

>"Error: this template attempted to load component assembly 'NuGet.VisualStudio.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.".

asp.net Mvc Solutions


Solution 1 - asp.net Mvc

I believe you do not have NuGet Package Manager extension installed.

If not, you can click TOOLS -> Extensions and Updates... -> Online, select NuGet Package Manager, and click Download:

enter image description here

After it downloads, you will be prompted for administrative elevation, and then to restart Visual Studio.

Tested in: Visual Studio Ultimate 2012 (Version 11.0.60610.01 Update 3)

UPDATE: I've just came across this problem in Visual Studio 2012. So despite some comments here, it is not necessarily installed by default.

Solution 2 - asp.net Mvc

i) Open Visual Studio > Tools > Extensions and Updates > select 'NuGet Package Manager' and uninstall it.(if it's not installed go to step 2)

ii) Open this url 'http://nuget.org'; and you will see an 'Install NuGet' link , download it(NuGet.Tools.vsix) and install it on your Visual Studio .

iii) Close and Re-open the Visual Studio and i believe you will never see that error Dialog again just like me ;-)

Solution 3 - asp.net Mvc

Same issue.

"Error: this template attempted to load component assembly 
'NuGet.VisualStudio.Interop .... "
when creating a new Web Role project in VS 2012.

Selecting:

  • TOOLS
  • Extensions and Updates
  • Online
  • Select NuGet Package Manager
  • Click Download
  • i could see NuGet was installed already
  • I removed it
  • installed it again
  • restarted VS

Resolved.

Thanks for the information above + 1. Scott

Solution 4 - asp.net Mvc

you might want to search and check the dll exists under \Microsoft Visual Studio 11.0\Common7\IDE\Extensions\ (it would be in a folder under extensions with other nuget binaries). If it doesn't exist you can try uninstalling and re-installing nuget. to uninstall: tools->extensions and updates -> installed (on the left pane)-> nuget package manager to install: tools->extensions and updates -> online->visualstudio gallery -> nuget package manager

Solution 5 - asp.net Mvc

Open Visual Studio and go to Tools- > Open Extension Manager or Extension and Updates - > Uninstall Nuget Package Manager -> Then Download Nuget Manager again from Online Gallery and then restart visual studio and you wont see the error message.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionGeasi PuozzoView Question on Stackoverflow
Solution 1 - asp.net MvcBhavesh ChauhanView Answer on Stackoverflow
Solution 2 - asp.net MvcMahdi ZareieView Answer on Stackoverflow
Solution 3 - asp.net Mvcscott_lotusView Answer on Stackoverflow
Solution 4 - asp.net MvcDeepakView Answer on Stackoverflow
Solution 5 - asp.net MvcMaheswariView Answer on Stackoverflow