ASP.NET MVC 4.0 RC and Newsoft.Json

I just installed the ASP.NET MVC 4.0 RC build on top of Visual Studio 2010 SP1. My project, which was used to compile and work with the beta version of ASP.NET MVC 4.0, causes an error when I access the site saying that Newtonsoft.Json assembly version 4.5 was not found.

Since I did not use this third-party library in my current project, I set up Fusion log to try to isolate the assembly that relied on the Newtonsoft.Json assembly.

And the guilty assembly System.Net.Http.Formatting.dll , which refers to the version of Newtonsoft.Json 4.5.

enter image description here

In beta, the link is System.Json.dll , not the Newtonsoft assembly.

I can hardly believe that Microsoft is starting to rely on external assemblies, even if they publish more and more code in open source. Anyone explain what happened?

+4
source share
1 answer

They actually rely on third-party software (just like they ship MVC with jQuery and knockout.js). Scott Guthrie announced that MVC 4 will ship with JSON.NET (Newtonsoft). See below:

Json.NET: We plan to use the developed Json.NET serialization community in our standard JSON formatting in the ASP.NET Web API. Json.NET provides the flexibility and performance needed for a modern web framework.

http://aspnet.codeplex.com/wikipage?title=ASP.NET%20MVC%204%20RoadMap

You can save the System.Json.dll file, I have both. If you are having problems with JSON.NET, just reinstall it :)

+7
source

Source: https://habr.com/ru/post/1415925/


All Articles