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:
Afterwards check that “Copy Local” is “True” for all above modules, like as below: