Manually generating Interop assembly failing......

O

Ollie

I am trying to generate a strong name assembly from the unmanaged DLL for
the COM + 1.0 Admin Type Library located in the
C:\WINDOWS\system32\Com\comadmin.dll, but when I run the following command
it fails....

C:\work\BillAnalyser\Bin>tlbimp.exe comadmin.dll /delaysign
/publickey:C:\work\key\billanalyser.snk /out:Fb.Interop.ComAdmin.dll


It fails saying 'TlbImp error: System.Runtime.InteropServices.COMException -
StrongName APIs could not locate a matching CSP.'

Anyone got any ideas why as this is driving me crazy....

Cheers in advance

Ollie
 
N

Nicholas Paldino [.NET/C# MVP]

Ollie,

Is there a need to delay sign the interop assembly? Can you just sign
it outright?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Ollie said:
I am trying to generate a strong name assembly from the unmanaged DLL for
the COM + 1.0 Admin Type Library located in the
C:\WINDOWS\system32\Com\comadmin.dll, but when I run the following command
it fails....

C:\work\BillAnalyser\Bin>tlbimp.exe comadmin.dll /delaysign
/publickey:C:\work\key\billanalyser.snk /out:Fb.Interop.ComAdmin.dll


It fails saying 'TlbImp error:
System.Runtime.InteropServices.COMException -
 
O

Ollie

Nick,

It fails with the same message if I don't delay signing it either....

The reason I am trying to do this is because I want to save changes into the
COM Admin Catalog from a COM+ application, and to register a COM+
application the assembly has to be signed (as you probably know :)) and
hence all references have to be signed as well.....

Cheers

Ollie
Nicholas Paldino said:
Ollie,

Is there a need to delay sign the interop assembly? Can you just sign
it outright?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Ollie said:
I am trying to generate a strong name assembly from the unmanaged DLL for
the COM + 1.0 Admin Type Library located in the
C:\WINDOWS\system32\Com\comadmin.dll, but when I run the following command
it fails....

C:\work\BillAnalyser\Bin>tlbimp.exe comadmin.dll /delaysign
/publickey:C:\work\key\billanalyser.snk /out:Fb.Interop.ComAdmin.dll


It fails saying 'TlbImp error:
System.Runtime.InteropServices.COMException -
StrongName APIs could not locate a matching CSP.'

Anyone got any ideas why as this is driving me crazy....

Cheers in advance

Ollie
 
Top