Could not load file or assembly 'System.Web.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

1

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?

c#
asp.net-mvc
asp.net-mvc-4
asked on Stack Overflow Dec 10, 2017 by PCDev • edited Dec 10, 2017 by Thomas Fritsch

2 Answers

0

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.

answered on Stack Overflow Dec 11, 2017 by Horkrine
0

Download and install this package: Download Web Pages 2 from Official Microsoft Download Center: Download

answered on Stack Overflow Nov 14, 2019 by Aawim Nocham

User contributions licensed under CC BY-SA 3.0