Problems with JSON parsing errors

Source: Internet
Author: User
Tags stack trace

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.