Regamm: خطأ RA0000: تعذر تحميل الملف أو التجميع أو أحد تبعياته.لا يمكن للنظام العثور على الملف المحدد
سؤال
أنا جديد في SharePoint.أحاول إضافة microsoft.sharepoint.dll إلى GAC.لهذا الشخص الذي استخدمته أدناه رمز
رمز: giveacodicetagpre.
عندما أضغط على مفتاح الإدخال، ثم أحصل على الخطأ أدناه: - giveacodicetagpre.
يرجى أي واحد يساعد في الخروج من هذا.
المحلول
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