Regasm : 오류 RA0000 : 파일이나 어셈블리를로드 할 수 없거나 종속성 중 하나를로드 할 수 없습니다.시스템이 지정된 파일을 찾을 수 없습니다
문제
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