Tuesday 1 July 2014

"Could not load file or assembly 'System.Web.Mvc'" when you deploy an ASP.NET MVC applicaiton in Microsoft Azure

I was trying to deploy Azure package, i am getting "Could not load file or assembly 'System.Web.Mvc'" when you deploy an ASP.NET MVC applicaiton in Microsoft Azure error.
After spending long time, i find the solution.
Solution:
I have some references in my solutions.
Go to that references, Press F4 (Properties of dll).
Set, Copy Local: True
Save.
Build.
Redeploy.
Problem solved.