views:

1299

answers:

5

I went to http://www.asp.net/mvc/ to try to install ASP.NET MVC.
I didn't know, but MVC is now at version 2.

There's a nifty thing called the Microsoft "Web Platform Installer" (WPI) which basically is a small installer-driver tool that presents a menu of things I might want to install, to do web things on Windows. On the menu are things like ASPNET MVC2, but also Drupal, PHP, Joomla, and a bunch of other things.

From http://www.asp.net/mvc/, when I click on the link that says "Install MVC", it resolves to http://go.microsoft.com/fwlink/?LinkID=185037, which then pops up the WPI.

But Then! I get an error dialog that reads "Installing ASPNET MVC2 requires VS2008 SP1".

But I know that I have VS2008 SP1.

What gives?

+1  A: 

I was able to install with the WPI, so you might want to open up VS08 and check the version number is "9.x.xxxxx.x SP" just to be 100% sure.

In the mean time, unless there's a particular reason you need to install with WPI, you can still directly download the executable and try that. It's available here: http://go.microsoft.com/fwlink/?LinkID=157074

PatrickJ
Yes, that is my version number; it's one of the first things I did. Confusingly, it says "SP" not "SP1". I don't knw why. But anyway, I do have SP1 installed.
Cheeso
+6  A: 

I looked around and found suggestions [1, 2] to manually modify the registry, specifically

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DevDiv\VS\Servicing\9.0\IDE\1033

to set values SP, SPIndex and SPName to 0, 0, and "SP1", respectively, to allow the check for SP1 to succeed.

But I didn't like that answer. I'm sure I have VS2008 SP1 installed; something isn't quite right. Modifying the registry like that is likely to result in an unsupported configuration, and future patches might not work, etc. It's a bad idea.

I looked further and found a suggestion to uninstall the VS2008 Integrated Shell. I did that, and then was able to install ASPNET MVC2 via the Web Platform Installer. I think the shell was installed with the VS 2008 SDK.

Apparently the MVC2 installer looks to see if there are any VS products installed that are not updated to SP1, and refuses to install if any are found. VS Integrated Shell is one of those things. Though it was installed prior to me installing VS2008 SP1, the integrated shell did not get upgraded to SP1 - at least not according to the registry settings associated to the integrated shell. Removing the integrated shell allows the MVC2 install to proceed. For those who are happy to do so, Editing the registry directly, without uninstalling the integrated shell, also allows install of MVC2 to succeed.

Maybe this will help someone else.

Cheeso
+1 - Nice find, apparently similar to the issue I was having (in the comments on the question) - only for a different installed application. I wonder now if I all *I* needed was a registry change...
John Rasch
Unfortunately this did not work for me. I changed the key in the registry to SP1 (it said RTM), but still no success. VS 2008 is showing version 9.0.30729.1 SP so there is a SP installed.
Gertjan
did you uninstall the piece that was not at SP? Did you find and uninstall the VS integrated shell?
Cheeso
Thanks for the answer Cheeso!!
Yogendra
A: 

I was able to get around this by manually installing SP1 to my VS2008.

I simply downloaded the installation files from here: http://www.microsoft.com/downloads/details.aspx?FamilyId=FBEE1648-7106-44A7-9649-6D9F6D58056E&displaylang=en and after installation I was able to install MVC 2 without any problems.

//Tjock

Tjock
A: 

Hi I have the same problem but the corrective measures like editing registry and uninstalling the VS2008 Integrated shell & Visual Studio Tools for Applications 2.0 didnt work for me. Am i missing something? Pls help.

Regards, Balaji

balaji
A: 

i am unable to install the wvc2 in my visual studio 2008

siva