Installing ASP.NET MVC 2 RC 2 on Visual Studio 2010 RC

0 comments suggest edit

As many of you have probably heard, the release candidate for Visual Studio 2010 was recently released containing immense performance improvements and tons of bug fixes.

Another thing that release contains is the release candidate for ASP.NET MVC 2. However, that release is not the latest release of ASP.NET MVC 2 as we recently released a second release candidate for ASP.NET MVC 2 in response to customer feedback.

I apologize for the confusion this may have caused, but we really felt it was important to have another release candidate for ASP.NET MVC to help verify that we were responding to feedback in the correct manner.

If you wish to have Visual Studio 2010 RC and ASP.NET MVC 2 RC 2 installed at the same time, it’s not a problem.

If you installed ASP.NET MVC 2 RC 2 Before installing VS 2010 RC

Believe it or not, you’re all set if you install them in this order.

When installing VS 2010 RC, the installation will detect that a newer version of the ASP.NET MVC runtime (aka the System.Web.Mvc assembly) is already installed and will not overwrite it with the older version included with VS 2010 RC.

Keep in mind that the project templates for VS 2010 will still be the slightly older ASP.NET MVC 2 RC project templates and not the RC 2 templates. Fortunately those templates haven’t changed too much between release candidates.

In this configuration, when you create a project using VS 2010 RC, even though the templates may be slightly older, the project will reference the newer System.Web.Mvc assembly.

If you are installing ASP.NET MVC 2 RC 2 After installing VS 2010 RC

In this case, there’s a tiny bit of work to do. The installer for ASP.NET MVC 2 RC 2 will block if an older version of the ASP.NET MVC 2 runtime is installed.

To remedy the situation, all you need to do is uninstall the ASP.NET MVC 2 runtime. In Add/Remove Programs dialog(also known as the Program and features dialog), this would be the entry named “Microsoft ASP.NET MVC 2”.

If you have an older version of MVC tooling/project templates for Visual Studio 2008 installed (named “Microsoft ASP.NET MVC 2 – Visual Studio 2008 Tools”), you’ll also need to uninstall that, but do not uninstall the MVC tooling for VS 2010.


At this point, you should only have Microsoft ASP.NET MVC 2 – Visual Studio Tools for VS 2010 installed. You may now run the installer for ASP.NET MVC 2 RC 2, which will put the runtime on your machine as well as tooling/project templates for VS 2008.

Hopefully this clears up some of the confusion and gets you going with VS 2010 RC and ASP.NET MVC 2 RC 2.

Found a typo or error? Suggest an edit! If accepted, your contribution is listed automatically here.



35 responses

  1. Avatar for Martin Aatmaa
    Martin Aatmaa February 10th, 2010

    Thank you Phil for the clarification.
    Congratulations on both releases! They are both solid products and are a pleasure to work with.

  2. Avatar for Guillermo Guerini
    Guillermo Guerini February 10th, 2010

    Can I still use MVC 1 with VS2010 RC?

  3. Avatar for Shaharyar
    Shaharyar February 10th, 2010

    Thanks Phil, this helped!
    But what is with the new JQuery 1.4 support?
    How can we enable / add it to our Visual Studio 2010 Project Templates?

  4. Avatar for wasserbetten freiburg
    wasserbetten freiburg February 10th, 2010

    i have no problem with visual studio.

  5. Avatar for Sam Pearson
    Sam Pearson February 10th, 2010

    I just have one thing to say about this post.

  6. Avatar for Kesav Kolla
    Kesav Kolla February 10th, 2010

    By mistake I uninstalled ASP.NET MVC2 Visual Studio 2010 tools. Is there any way to get back the 2010 tool support again?

  7. Avatar for haacked
    haacked February 10th, 2010

    @Guillermo unfortunately no. However, VS 2010 RTM will include an automatic upgrader for MVC 1.0 apps.
    For now, the lead dev for ASP.NET MVC posted a tool you can try out (at your own risk) that can upgrade an MVC 1.0 app to 2.0 so it can be opened in VS 2010.

  8. Avatar for haacked
    haacked February 10th, 2010

    @Kesav you'll need to go to Add/Remove Programs (or Features and Programs) and uninstall the web component of VS 2010 RC (you don't have to uninstall *all* of VS 2010) and then reinstall the web component.

  9. Avatar for Nick
    Nick February 11th, 2010

    Yeah, I did the same thing. I uninstalled the tools support for MVC2 in VS2010. A repair install did not bring the tools support back, but I'll try to remove and re-add the web component of the VS2010 install and see if that works.

  10. Avatar for Dragan Panjkov
    Dragan Panjkov February 11th, 2010

    @Nick you could try to run <dvd>\WCU\ASPNETMVC\VS2010ToolsMVC2.msi installer for tools.

  11. Avatar for Dragan Panjkov
    Dragan Panjkov February 11th, 2010

    Is it necessary to remove VS 2008 Tools for proper behaviour of 2010 tools?

  12. Avatar for haacked
    haacked February 11th, 2010

    @Dragan, no it is not necessary to remove VS 2008. That step is only for those about to install ASP.NET MVC 2 RC 2 since that installer will install the tools for VS 2008.

  13. Avatar for Gene
    Gene February 11th, 2010

    OK, maybe I'm dense, but I'm not any less confused, so just to clarify: Does MVC 2 RC2 work with Visual studio 2010 RC?
    I have uninstalled VS 2008 so I don't want to uninstall the MVC 2 RC1 (or whatever is installed with VS 2010 RC) if MVC 2 RC2 doesn't work with VS 2010.

  14. Avatar for Jeff Putz
    Jeff Putz February 11th, 2010

    I've got a new problem. I opened an MVC RC2 project originally from VS2008 and for some reasons the basic HTML helpers are throwing an error because I don't have a reference to the v3.5 System.Web.Routing assembly. If I'm targeting v4, that's all broken. Is there a way to remedy that?

  15. Avatar for haacked
    haacked February 11th, 2010

    @Gene Yes, MVC 2 RC 2 will work with VS 2010 RC. The caveat is that VS2010 won't magically have the latest project templates for MVC 2 RC 2. So when creating a project in VS2010, you'll have the MVC 2 RC project templates, but using the MVC 2 RC 2 runtime assembly.

  16. Avatar for tjukic
    tjukic February 11th, 2010

    What are the changes in those templates?
    If by templates you mean .tt then we could just replace VS2010RC templates with those from the MVC2RC2, right?

  17. Avatar for Eduardo Mendes those
    Eduardo Mendes those February 11th, 2010

    I dont have any problem with visual studio and MVC, works fine! Nice Post!

  18. Avatar for Harish Ranganathan
    Harish Ranganathan February 11th, 2010

    Phil, a small suggestion. It would be easy if you mention the minor version number and build number as well so that one can check after following the instructions, in the add/remove programs.
    From my observation, I found the following (after following your steps :) - you can verify if its correct for me as well)
    Microsoft ASP.NET MVC 2.0.50129.0
    Microsoft ASP.NET MVC 2 - Visual Studio 2008 Tools 2.0.50129.0
    Microsoft ASP.NET MVC 2 - Visual Studio 2010 Tools 2.0.41211.0
    Microsoft ASP.NET MVC 2 - VWD Express 2008 Tools 2.0.50129.0

  19. Avatar for haacked
    haacked February 12th, 2010

    @tjukic Not just .tt, but the project template. That's the contents of the default site that gets created when you select File | New | ASP.NET MVC 2 Project.
    @Harish I will next time, thanks.

  20. Avatar for Gabriel Susai
    Gabriel Susai February 18th, 2010

    Phil, I just followed the steps, but couldn't find any project templates for MVC2.
    I have both of these on "Programs and Features"
    Microsoft ASP.NET MVC2 - Visual Studio 2010 tools
    Microsoft ASP.NET MVC2
    Any help appreciated.

  21. Avatar for D. Lambert
    D. Lambert February 18th, 2010

    I'm still having trouble trying to get this to work. I followed the steps here, and was still seeing problems, so I tried the steps on Ali Bastani's blog next. I'm still seeing the same behavior:
    When I try to create a new MVC 2 project, I see entries for ASP.Net MVC 2 Web Application and ASP.Net MVC 2 Empty Web Application, and when I choose them, they appear to start creating the files (I'm prompted if I want to create a unit test project, for instance), but then I see the following error:
    "The project file '<path to temp dir>\rfhjrrfd.3ui\Temp\MvcApplication1.csproj' cannot be opened. The project type is not supported by this installation."
    Obviously the temp folder name is different each time. The most recent time I saw this, I tried navigating to that location to see what, exactly, was being written there, and I was surprised to see that nothing at all was being written there. I haven't yet gone as far as loading up any sysinternals tools to see if they can see a file error of some sort.
    I also left a similar comment on Ali's blog.
    Thanks for any clues you might be able to throw my way.

  22. Avatar for ali62b
    ali62b February 18th, 2010

    @D. Lambert :I updated my blog you may take a look and see if the problem will fix.

  23. Avatar for D. Lambert
    D. Lambert February 19th, 2010

    Ali - thanks - I responded on your blog. I'm all set now.

  24. Avatar for Steve
    Steve March 3rd, 2010

    "@Guillermo unfortunately no. However, VS 2010 RTM will include an automatic upgrader for MVC 1.0 apps. "
    Great, thanks for looking out for us early adopters :)
    I need a comprehension package that includes MVCContrib + Futures + mvc 2.0 :)

  25. Avatar for SEOINK&#195;–LN
    SEOINK&#195;–LN March 8th, 2010

    hat mir sehr gefalen

  26. Avatar for AGRITURISMO
    AGRITURISMO March 8th, 2010

    is ok :) thx

  27. Avatar for Christian Metz
    Christian Metz March 11th, 2010

    I just tryed to install MVC 2 Final onto my machine with Visual Studio 2010.
    I follow the steps above to uninstall old versions of MVC 2.
    During the installation of the final version i recieve an error "Please uninstall the MS VS Tools component for MVC before uninstalling MS ASP.NET MVC 1.1"
    I do have MVC 1.0 and also MVC 1.1 runtime install on this machine.
    To uninstall MVC 1.1 I would have to uninstall the Tools, too, what I didnt wanted.
    Therefore I unpacked the AspNetMVC2_VS2008.exe installed the Tool with the installer and added the System.Web.Mvc.dll (which can be extracted with msiexec /a command) manually (better with gacutil) into the GAC.
    Now everything look fine for the moment. I just do not have an entry in my programs and features for MS ASP.NET MVC 2.0, but I can work normally within VS.
    Is there a better way to fix this or what should I do with old MVC 1.1 runtime?

  28. Avatar for haacked
    haacked March 11th, 2010

    @Christian uninstall MVC 1.1. That was a one-off we put out there on CodePlex and probably shouldn't have been released.

  29. Avatar for Johnson
    Johnson March 13th, 2010

    What's the name of the "web component" in Add/Remove Programs to uninstall if I've mistakenly uninstalled ASP.Net MVC 2 - Visual Studio 2010 Tools? Thanks!

  30. Avatar for Heiko Veit
    Heiko Veit April 18th, 2010

    Visual Studio 2010 is the best software

  31. Avatar for Heiko
    Heiko May 12th, 2010

    i have no problem with visual studio and i Work every day with visual studio

  32. Avatar for daniel
    daniel May 17th, 2010

    Hat mir sehr gut gefallen.

  33. Avatar for oliver
    oliver June 2nd, 2010

    I work every day with ASP and im very lucky

  34. Avatar for reisetrip24
    reisetrip24 July 29th, 2010

    I have no problem with ASP net

  35. Avatar for Der Kieler
    Der Kieler April 6th, 2012

    Thanx a lot for that one ...!