0

我的 Windows 日志中不断出现此错误:

 SharePointSocialNetworking.Facebook 
   b0ceb144-b183-4b66-aa10-39fd9ee42bd4 
   Could not load file or assembly 'Microsoft.Contracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=736440c9b414ea16' or one of its dependencies. The system cannot find the file specified. 

但是它所讨论的程序集已经在我的 GAC 中显示:

替代文字

我在这里错过了什么吗?GAC 中的所有内容都与错误消息匹配。windows怎么找不到这个?

4

3 回答 3

1

将 SafeControl 条目添加到您的 web.config:

<configuration>
...
  <SharePoint>
  ...
    <SafeControls>
      ...
      <SafeControl Assembly="Microsoft.Contracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=736440c9b414ea16" Namespace="Microsoft.Contracts" TypeName="*" Safe="True" />
    </SafeControls>
  ...
  </SharePoint>
...
</configuration>
于 2010-11-23T19:30:25.260 回答
0

它不仅需要找到 Microsoft.Contracts 程序集,还需要找到它的所有依赖项。您需要查看程序集有哪些依赖项,并确保它们都在 GAC 中。

于 2010-11-23T19:25:45.210 回答
0

您可以在此处找到库 C:\Program Files\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\mscorlib.dll

于 2011-01-24T16:21:10.440 回答