This project has moved. For the latest updates, please go here.

Could not load type 'System.DateTimeOffset' from assembly 'mscorlib,

Nov 20, 2009 at 2:35 AM


I'm in a bit of a crunch and hope someone can help me figure this out. I'm currently using the Newtonsoft.Json.Net20.dll for an application that needs to be deployed in 2.0. It's running fine on my local machine, which I have targeted to 2.0 output (but also has the 3.5 framework installed). the problem is that when I upload it to the test server, and try to run Newtonsoft.Json.JsonConvert.SerializeObject(myobject) it produces the following error:

Could not load type 'System.DateTimeOffset' from assembly 'mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089

I have tried removing references to DateTimeOffset from the JsonConvert.cs and DateTimeUtils.cs files, but to no avail. Can anyone help?