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 asp.net 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=220.127.116.11, 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?