Tuesday, May 24, 2011

Deploy ASP.NET MVC 3 application to Windows Azure

Although I had installed ASP.NET MVC applications on Windows Azure before, I had some problems last week getting everything up and running. The problem was that I switched from the WebForms view engine to Razor. It seems that Razor requires a lot of extra DLL’s that should be installed on your web role.


So to simplify this process next time, a reminder for myself. If you are using ASP.NET MVC 3 together with Razor, check that following references are added:

  • System.Web.Mvc.dll
  • Microsoft.Web.Infrastructure
  • System.Web.Helpers
  • System.Web.Razor
  • System.Web.WebPages
  • System.Web.WebPages.Deployment
  • System.Web.WebPages.Razor

Afterwards check that “Copy Local” is  “True” for all above modules, like as below:


No comments: