A title error was encountered while publishing the Web site.
Error message details: Failed to load file or assembly "SYSTEM.WEB.MVC, version=5.2.3.0, culture=neutral, publickeytoken=31bf3856ad364e35" or one of its dependencies. The found assembly manifest definition does not match the assembly reference. (Exception from hresult:0x80131040)
Development environment:. NET framework4.0/vs2017
Here's my workaround:
Under Web. config, modify the following node (note that the Web. config under the Views folder also needs to be modified)
1 <system.web>2 <compilation>3 <assemblies>4 <add assembly="System.Web.Mvc, version=5.2.3.0, Culture=neutral, publickeytoken= 31bf3856ad364e35" />5 </assemblies>6 </compilation >7 </system.web>
Note the red text, modified to the corresponding SYSTEM.WEB.MVC version number in the system. Version number Get method: Right key reference in System.Web.Mvc, view the property, modify to the corresponding version, my version is 4.0.0.1. As shown in the following:
Failed to load file or assembly "SYSTEM.WEB.MVC, version=5.2.3.0, culture=neutral, publickeytoken=31bf3856ad364e35" or one of its dependencies