调试器不断给我这个'System.IO.FileLoadException'错误消息在Visual Studio的输出窗口中每当我调用一个dll程序集中的toJSONString()方法时,早先创建。见下面的方法。我使用NuGet来加载和引用newtonsoft-json.dll库,所以为什么运行时间尝试失败超出了我。'System.IO.FileLoadException'with newtonsoft-json
Object output;
...
public String toJSONString()
{
String strOut = "";
if (output != null)
{
strOut = JsonConvert.SerializeObject(output);
}
return strOut;
}
在解决方案资源管理器窗口,参考下,我检查了Newtonsoft.Json路径是C:\ TEMP2 \ DataTables_Examples \包\ Newtonsoft.Json.9.0.1 \ LIB \ net45 \ Newtonsoft.Json .dll文件。该dll文件确实存在。我不知道为什么应用程序没有看到它?任何帮助,将不胜感激。
尝试清理和重新生成解决方案。 – Chandru
你尝试过'update-package Newtonsoft.Json -reinstall'吗? –