MVC4 Azure Publishing Error - Could not load file or assembly 'System.Web.Razor'
Make sure the 2.0 dll is referenced and copy local = true, then try adding an assembly binding redirect in the web.config:
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Razor" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
</dependentAssembly>
</assemblyBinding?