REGASM ERROR
I am trieng to register tlb file with dll, but i am getting below error, please suggest:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322>regasm SecureExcelDCF.dll /tlb ecu
reExcelDCF.tlb
RegAsm error: File or assembly name Extensibility, or one of its dependencies, w
as not found.
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322>regasm SecureExcelDCF.dll /tlb ecu
reExcelDCF.tlb
RegAsm error: File or assembly name Extensibility, or one of its dependencies, w
as not found.
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
anonymous_9363
13 years ago
Posted by:
sharanshirol
13 years ago
As we have a dependent dll for the SecureExcelDCF.dll & SecureExcelDCF.tlb files.so the dll and tlb need to place in the folder where the Extensibility.dll is present.So this will be a successful registration of the DLL.
gives the successfull result when you execute the regasm.
C:\>C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\RegAsm.exe "C:\Program Files\Mi
crosoft Office\Addin\Excel CLI Addin\SecureExcelDCF.dll" /tlb "C:\Program Files\
Microsoft Office\Addin\Excel CLI Addin\SecureExcelDCF.tlb"
Microsoft (R) .NET Framework Assembly Registration Utility 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
Types registered successfully
TlbExp warning: Referenced type is defined in managed component, which is import
ed from a type library that could not be loaded because it was not registered (t
ype: Extensibility.IDTExtensibility2; component: c:\program files\microsoft offi
ce\addin\excel cli addin\extensibility.dll).
Assembly exported to 'C:\Program Files\Microsoft Office\Addin\Excel CLI Addin\Se
cureExcelDCF.tlb', and the type library was registered successfully
gives the successfull result when you execute the regasm.
C:\>C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\RegAsm.exe "C:\Program Files\Mi
crosoft Office\Addin\Excel CLI Addin\SecureExcelDCF.dll" /tlb "C:\Program Files\
Microsoft Office\Addin\Excel CLI Addin\SecureExcelDCF.tlb"
Microsoft (R) .NET Framework Assembly Registration Utility 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
Types registered successfully
TlbExp warning: Referenced type is defined in managed component, which is import
ed from a type library that could not be loaded because it was not registered (t
ype: Extensibility.IDTExtensibility2; component: c:\program files\microsoft offi
ce\addin\excel cli addin\extensibility.dll).
Assembly exported to 'C:\Program Files\Microsoft Office\Addin\Excel CLI Addin\Se
cureExcelDCF.tlb', and the type library was registered successfully

so that the conversation will remain readable.