Abe Miessler
Abe Miessler

Reputation: 85036

How is windows not finding this assembly?

I keep getting this error in my windows logs:

 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. 

But the assembly it's talking about already shows in my GAC:

alt text

Am I missing something here? Everything in the GAC matches the error message. How could windows not find this?

Upvotes: 0

Views: 1411

Answers (3)

Korayem
Korayem

Reputation: 12497

You can find the library here C:\Program Files\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\mscorlib.dll

Upvotes: 0

theChrisKent
theChrisKent

Reputation: 15099

Add a SafeControl entry to your 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>

Upvotes: 1

Achilles
Achilles

Reputation: 11299

It doesn't just have to find the Microsoft.Contracts assembly but ALL of its dependencies. You need to see what dependencies that assembly has and make sure they all are also in the GAC.

Upvotes: 0

Related Questions