代码之家  ›  专栏  ›  技术社区  ›  Abe Miessler

windows如何找不到此程序集?

  •  0
  • Abe Miessler  · 技术社区  · 15 年前

    我的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. 
    

    但它所说的大会已经在我的大会上显示了:

    alt text

    我是不是丢了什么东西?GAC中的所有内容都与错误消息匹配。windows怎么找不到这个?

    3 回复  |  直到 15 年前
        1
  •  1
  •   Abe Miessler    15 年前

    将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>
    
        2
  •  0
  •   Achilles    15 年前

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

        3
  •  0
  •   Korayem Praphul Katlana    15 年前

    你可以在这里找到图书馆 C:\程序文件\引用程序集\Microsoft\Framework.NETFramework\v4.0\mscorlib.dll

    推荐文章