Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
1)Exception Details:
System.IO.FileLoadException: Could not load file or assembly 'System.Web.Helpers' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Some times its shooting below exception:
2)Could not load file or assembly 'System.Web.WebPages.Razor,

What I have tried:

I'm using visual studio 2015 framework while in runtime.
checked with below assemblies.
<dependentAssembly>
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="1.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
</dependentAssembly>


I also checked several threads related to this exception however not found results. Please check below exceptions and give solutions thanks in advance.
Posted
Updated 23-Nov-16 21:13pm
v2
Comments
F-ES Sitecore 18-Nov-16 7:29am    
You need to make sure you either have the right version of the Helpers assembly or that the bindingRedirect old and new params are right for what you have. We can't access your system, we don't know what versions of dlls you have or what versions you need.
Meer Wajeed Ali 18-Nov-16 8:09am    
how do I find out what is referencing System.Web.WebPages.Razor v3.0.0.0?

In ASP.NET MVC 4, the namespace is not System.Web.WebPages.Razor, but System.Web.Razor


1 solution

Right click and look in to the properties on the Dll available in references.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900