Upgrading an ASP.NET MVC 1.0 Project to ASP.NET MVC 2

Upgrading an ASP.NET MVC 1.0 Project to ASP.NET MVC 2

To upgrade an existing ASP.NET MVC 1.0 application to version 2, follow these steps:

  1. Make a backup of the existing project.
  2. Open the project file in a text editor (the file with the .csproj or .vbproj file extension) and find the ProjectTypeGuid element. As the value of that element, replace the GUID {603c0e0b-db56-11dc-be95-000d561079b0} with {F85E285D-A4E0-4152-9332-AB1D724D3325}. When you are done, the value of that element should be as follows:


  1. In the Web application root folder, edit the Web.config file. Search for System.Web.Mvc, Version= and replace all instances with System.Web.Mvc, Version=
  2. Repeat the previous step for the Web.config file located in the Views folder.
  3. Open the project using Visual Studio, and in Solution Explorer, expand the References node. Delete the reference to System.Web.Mvc (which points to the version 1.0 assembly). Add a reference to System.Web.Mvc (v2.0.0.0).
  4. Add the following bindingRedirect element to the Web.config file in the application root under the configuraton section:


<assemblyBinding xmlns=”urn:schemas-microsoft-com:asm.v1″>


<assemblyIdentity name=”System.Web.Mvc”


<bindingRedirect oldVersion=”″ newVersion=”″/>




  1. Create a new ASP.NET MVC 2 application. Copy the files from the Scripts folder of the new application into the Scripts folder of the existing application.

Compile the application and run it.

Tags: , , ,

Comments are closed.