The debugger keeps giving me this 'System.IO.FileLoadException' error message in the output window of Visual Studio everytime I call the toJSONString() method in a dll assembly I had created earlier. See method below. I used NuGet to load and reference the newtonsoft-json.dll library, so why a runtime attempt keeps failing is beyond me.
Object output;
...
public String toJSONString()
{
String strOut = "";
if (output != null)
{
strOut = JsonConvert.SerializeObject(output);
}
return strOut;
}
In the Solutions Explorer window, under References, I checked the path for Newtonsoft.Json which is C:\temp2\DataTables_Examples\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll. That dll file does exist there. I don't know why the app doesn't see it? Any help would be appreciated.