Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
NewtonSoft StreamingContext与Microsoft.Net framework mscorlib.dll冲突_.net_Sharepoint_Json.net - Fatal编程技术网

NewtonSoft StreamingContext与Microsoft.Net framework mscorlib.dll冲突

NewtonSoft StreamingContext与Microsoft.Net framework mscorlib.dll冲突,.net,sharepoint,json.net,.net,Sharepoint,Json.net,我在一个SharePoint项目中添加了Newtonsoft 3.5 compact dll,在构建该项目时,我遇到以下错误 错误9类型“System.Runtime.Serialization.StreamingContext”存在于“C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll”和“C:\Windows\assembly\GAC\U MSIL\Newtonsoft.Json.Compact\3.5.0.0\uu 30ad

我在一个SharePoint项目中添加了Newtonsoft 3.5 compact dll,在构建该项目时,我遇到以下错误

错误9类型“System.Runtime.Serialization.StreamingContext”存在于“C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll”和“C:\Windows\assembly\GAC\U MSIL\Newtonsoft.Json.Compact\3.5.0.0\uu 30ad4fe6b2a6eed\Newtonsoft.Json.Compact.dll”中E:\Projects\Khagesh\PE-TFS\Solutions\Exceptions\Exceptions\Exception.cs


通过删除Newtonsoft的引用,此错误不会出现。但是,我需要两个dll。

我删除了
Newtonsoft.Json.Compact.dll
并添加了
Newtonsoft.Json.Net20.dll
,一切正常。我不知道为什么会有这两个DLL以及何时使用哪一个