HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityDoc feedbackLog In
GitHubNuGetDev CommunityDoc feedback

## Steps to upgrade

Follow the steps below to upgrade your Optimizely project to the latest MVC version.

  1. Upgrade your site to the latest NuGet package for [ASP.NET MVC](🔗), run "Update-Package Microsoft.AspNet.Mvc" in the Package Manager Console.

  2. Update the application **web.config** file in your project as follows: \- Change the **System.Web.Mvc** version number from "" to "".  \- Change the **System.Web.Helpers** and **System.Web.WebPages** version number from "" to "" (if not already done). If **System.Web.WebPages.Razor** exist as a dependent assembly it should also have version "". \- Change the **webpages:Version** in the **<appSettings>** section from to The result should look like:

  1. Update the **web.config** file in the **Views** folder as follows: \- Update elements containing **System.Web.Mvc** from version "" to "". \- Update elements containing **System.Web.WebPages.Razor** from version "" to "". 

  1. If you use Web API 1, run "Install-Package Microsoft.AspNet.WebApi.WebHost" in the Package Manager Console to update your global.asax from:



  2. Build your solution and verify that the site is working.

## See also

  • [How to upgrade an ASP.NET MVC 4 and Web API Project to ASP.NET MVC 5 and Web API 2](🔗) (Microsoft)