views:

645

answers:

4

Hello,

I've installed full version (not RC nor Beta) of Visual Studio 2010, a then setup within Web Platform Installer 2.0 announce me that I need to install MVC 2.0, so i did it.

When I want to create project "MvcWebApplicationProjectTemplate" in VS I have following message:

error: this template attempted to load component assembly 'Microsoft.VisualStudio.Web.Mvc.2.0, Version=10.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. For more information on this problem and how to enable this template, please see documentation on Customizing Project Templates.

Any idea how to fix it? Do you think that Web Platform Installer 2.0 might have corrupted this template?

Thanks, Daniel

+2  A: 

VS 2010 comes with MVC2. I am guessing installing it again using WPI made it corrupt. Try uninstalling the MVC2 install (the one through WPI) and then repair the VS 2010 RTM install.

Good luck!

Raj Kaimal
Yes, problem was with WPI, it corrupted VS 2010 templates for ASP.NET MVC 2.0.
Daniel
A: 

i've a clean install of VS2010 Ultimate and facing the same problem while creating MVC project. No WPI installed. Any Idea ?????

Wasif
A: 

Apparently if you installed MVC2 RC2 after VS2010 there is an issue. Try the following link:

http://haacked.com/archive/2010/02/10/installing-asp-net-mvc-2-rc-2-on-visual-studio.aspx

Jonathan Stanton
A: 

Visual Studio 2010 repair solved my problem.

Wasif