Server error in "/" application.
failed to load file or assembly "Newtonsoft.json, version=6.0.0.0, culture=neutral, publickeytoken=30ad4fe6b2a6aeed" or one of its dependencies. The found assembly manifest definition does not match the assembly reference. (Exception from hresult:0x80131040)
description: An unhandled exception occurred during the execution of the current WEB request. Check the stack trace information For more information about the error and the source of the error in your code. &NBSP
exception Details: System.IO.FileLoadException: Failed to load file or assembly "Newtonsoft.json, version= 6.0.0.0, Culture=neutral, publickeytoken=30ad4fe6b2a6aeed "or one of its dependencies. The found assembly manifest definition does not match the assembly reference. (Exception from hresult:0x80131040)
Source error: assembly Load Trace: The following information helps determine the assembly "Newtonsoft.json, version= 6.0.0.0, Culture=neutral, publickeytoken=30ad4fe6b2a6aeed "failed to load the cause.
= = = Pre-bind status information = = = log: DisplayName = Newtonsoft.json, version=6.0.0.0, Culture=neutral, Publickeytoken=30ad4fe6b2a6aeed ( fully-specified) log: Appbase = file:///G:/code/IronFuryServer/Route/log: initial PrivatePath = G:\code\IronFuryServer\Route\ Bin invocation assembly: System.Net.Http.Formatting, version=5.2.3.0, Culture=neutral, publickeytoken=31bf3856ad364e35. = = = Log: This binding starts from the default load context. LOG: Using application configuration file: G:\code\IronFuryServer\Route\web.config log: Using Host Profile: C:\Windows\Microsoft.NET\Framework64\ V4.0.30319\aspnet.config log: Use C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config's computer configuration file. LOG: Policy Post reference: Newtonsoft.json, version=6.0.0.0, culture=neutral, publickeytoken=30ad4fe6b2a6aeed log: Try to download a new URL File:///C :/windows/microsoft.net/framework64/v4.0.30319/temporary ASP. files/root/24fb3432/4a6a283a/ Newtonsoft.Json.DLL. LOG: Try to download a new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP. files/root/24fb3432/ 4a6a283a/newtonsoft.json/newtonsoft.json.dll. LOG: Try to download a new URL file:///G:/code/Ironfuryserver/route/bin/newtonsoft.json.dll. Warning: A mismatch occurred while comparing assembly names: Major version error: Failed to complete assembly installation (hr = 0x80131040). The probe terminates. |
solution that needs to be added in config
<dependentAssembly>
<assemblyidentity name= "Newtonsoft.json" culture= "neutral" publickeytoken= "30ad4fe6b2a6aeed"/>
<bindingredirect oldversion= "0.0.0.0-9.0.0.0" newversion= "9.0.0.0"/>
</dependentAssembly>
Problems with JSON parsing errors