This kind of Error will mainly come for Newtonsoft.json.dll
version Conflict.
Could not load file or assembly 'Newtonsoft.Json' or one of
its dependencies. The located assembly's manifest definition does not match the
assembly reference
You can see the Exception trace it is showing the
configuration file settings.
We can check the version of dll in the runtime of web.config
file and dll version in the Solution references.
 
<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" culture="neutral"publicKeyToken="30ad4fe6b2a6aeed" />
        <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
      </dependentAssembly>       
    </assemblyBinding>
  </runtime>
 
Either we have to change the version in configuration
section or we have to update of dll based on the dependencies of version.
Update-Package
Newtonsoft.Json
 
Update the Nu Get package from Package update Console.
Go to Tools in Visual studio and select Nu Get Package
Manager and the select Package Manager Console.
This will resolve the Problem.
No comments:
Post a Comment