SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to SharePoint. I am trying to add the Microsoft.SharePoint.dll to GAC. For that one I have used below code

Code :

 `c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319> Regasm.exe "C:\Microsoft.SharePoint.dll"`

When I press entry key, then I am getting the below error:-

RegAsm : error RA0000 : Could not load file or assembly 'Microsoft.SharePoint.Search.Native, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependenceies. The system cannot find the file specified.

Please can any one help to get out of this.

share|improve this question
up vote 1 down vote accepted

For that you need to use Gacutil instead of Regasm. So,

gacutil /i Microsoft.SharePoint.dll

Difference between regasm and gacutil:

Regasm: The Assembly Registration tool reads the metadata within an assembly and adds the necessary entries to the registry, which allows COM clients to create .NET Framework classes transparently. Once a class is registered, any COM client can use it as though the class were a COM class. The class is registered only once, when the assembly is installed. Instances of classes within the assembly cannot be created from COM until they are actually registered. Source

Gacutil: The Global Assembly Cache tool allows you to view and manipulate the contents of the global assembly cache and download cache. Source

More details

share|improve this answer
Thanks for the answer. It will help me lot. But can you tell me what is different between gacutil and regams. – Mahesh Apr 17 '13 at 5:09
Updated my answer, hope it clarifies the difference. – Jussi Palo Apr 18 '13 at 5:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.