Could not load file or assembly 'System.Web.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
I already searched for this error but the provided solution does not work. Visual studio nuget packages does not show installed mvc package to upgrade.
During deployment, getting the above mentioned error. Please let me know how to resolve this error?
Every time I've had this issue, it's always been an issue with the web config file. Check that your reference in your ~/Views/web.config is the correct one, and try again.
Download and install this package: Download Web Pages 2 from Official Microsoft Download Center: Download
User contributions licensed under CC BY-SA 3.0