Runtime error "Newtonsoft.Json.Net20.Merged.dll"

Oct 13, 2009 at 1:25 PM

Hello, 

has any one run into this problem? When I compile my project I don't receive any errors. However, at runtime I get the following exception:

Could not load file or assembly 'Newtonsoft.Json.Net20.Merged, Version=3.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.

Where is this file? I tried searching for in in the Json download, but could not find it.

The code that I am trying to run is:

 

 JsonSerializer l_jsonser = new JsonSerializer();
            //l_jonXmlConv.ReadJson(l_jsonread, typeof(XmlDocument), l_jsonser);
            //JavaScriptSerializer jss = new JavaScriptSerializer();
            TextWriter l_tw = new StringWriter();
            JsonWriter l_jwriter = new JsonTextWriter(l_tw);
            l_jonXmlConv.WriteJson(l_jwriter, (object)res, l_jsonser);

 JsonSerializer l_jsonser = new JsonSerializer();

TextWriter l_tw = new StringWriter();

JsonWriter l_jwriter = new JsonTextWriter(l_tw);

 l_jonXmlConv.WriteJson(l_jwriter, (object)res, l_jsonser);

 

Any ideas of what the problem might be? Thanks in advance, Juan

Oct 13, 2009 at 1:31 PM

I had the same problem when I referenced Newtonsoft.Json.Net20 in project. Then I used Newtonsoft.Json and it worked.

Oct 13, 2009 at 1:51 PM

Thank you grega_g, that worked!

I have another question, I'm trying to convert from JSON to XML but I'm not sure what method I should use. Should I be using the XmlNodeConverter's "ReadJSon" or "WriteJSon" methods? 

Thank you, Juan

Coordinator
Oct 14, 2009 at 2:56 AM

Opps, I've fixed the dll in the latest release.

You only need to use Newtonsoft.Json.Net20.dll if you're running .NET 2.0.

Nov 8, 2010 at 6:50 PM

I am getting the following error when i compile my code:

Could not load file or assembly 'Newtonsoft.Json, Version=3.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.

Can you please tell me where i am doing wrong?

Thanks in Advance

Rohit

Nov 9, 2010 at 4:02 AM
Rohit, have u added the reference of Newtonsoft dll to u r project?

On 9 November 2010 01:20, rohitparshad <notifications@codeplex.com> wrote:

From: rohitparshad

I am getting the following error when i compile my code:

Could not load file or assembly 'Newtonsoft.Json, Version=3.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.

Can you please tell me where i am doing wrong?

Thanks in Advance

Rohit

Read the full discussion online.

To add a post to this discussion, reply to this email (Json@discussions.codeplex.com)

To start a new discussion for this project, email Json@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Nov 9, 2010 at 5:03 AM

Yes..It is already added.

Nov 10, 2010 at 8:52 AM

Any updates on this please? I am stuck. :(