Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is Microsoft.Contracts and where is it coming from?

Tags:

.net

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?

like image 272
Abe Miessler Avatar asked Nov 22 '10 19:11

Abe Miessler


People also ask

What is Microsoft Service agreement 2022?

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.

What is a Microsoft licensing agreement?

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.

Where do I find my Microsoft agreement?

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.

What is Microsoft Business and services agreement?

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.


2 Answers

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.

like image 67
as-cii Avatar answered Nov 09 '22 16:11

as-cii


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

like image 30
iulia lucaciu Avatar answered Nov 09 '22 15:11

iulia lucaciu