Regmasma: ERROR RA0000: Die Datei oder Montage oder eine der Abhängigkeiten konnte nicht laden.Die angegebene Datei wurde vom System nicht gefunden
Frage
Ich bin neu in SharePoint.Ich versuche, das microsoft.sharepoint.dll an GAC hinzuzufügen.Dafür habe ich unten Code verwendet
Code: generasacodicetagpre.
Wenn ich den Eingabeschlüssel drücke, bekomme ich den folgenden Fehler: - generasacodicetagpre.
Bitte kann niemand helfen, daraus herauszukommen.
Lösung
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