Регистрация: Ошибка RA0000: не удалось загрузить файл или сборку или одну из его зависимостей.Система не может найти указанный файл

sharepoint.stackexchange https://sharepoint.stackexchange.com//questions/65960

Вопрос

Я новый для SharePoint.Я пытаюсь добавить Microsoft.sharePoint.dll в GAC.Для этого я использовал ниже код

код:

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

Когда я нажимаю клавишу ввода, то я получаю сообщение ниже: -

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

Пожалуйста, может помочь выбрать из этого.

Это было полезно?

Решение

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с sharepoint.stackexchange
scroll top