I have a custom SharePoint job that is erroring out when it tries to run. When I look at the error i see:
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.
I've searched my solution and there is no reference to this anywhere. Where could this be coming from?
The Microsoft Services Agreement is an agreement between you and Microsoft (or one of its affiliates) that governs your use of Microsoft consumer online products and services.
Microsoft Services Provider License Agreement (SPLA) is for service providers and ISVs who want to license eligible Microsoft products to host software services and applications to end customers.
You'll receive the Microsoft Customer Agreement from your Microsoft representative or your Microsoft partner. You can view the terms during the transaction checkout process or see a general agreement on this page.
The Microsoft Business and Services Agreement (the “MBSA”) is a Master Services Agreement used by Microsoft for Volume Licensing Agreements. It contains general contract terms (e.g. confidentiality, warranties, liability, term and termination etc.) to regulate the contractual relationship between the parties.
Microsoft.Contracts (CodeContracts) is the assembly in which are contained the methods that "provides a language-agnostic way to express coding assumptions in .NET programs".
Maybe some external assembly is searching this one.
If you are using .NET 3.5 or earlier, you need to add a reference to Microsoft.Contracts.dll
that is installed under:%PROGRAMFILES%/Microsoft/Contracts/PublicAssemblies
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With