Cominterop Assembly registration...

N

Nadav

Hi,

Introduction:
****************
I have created a .NET COM interop Assembly, this assembly references another COM object.

The Problem:
*****************
To enable registration of the .NET assembly as a COM object I have generate a 'Strong Name' and associate it with my assembly, upon 'Strong Name' association I get 'Assembly generation failed -- Referenced assembly 'Interop.SALLib' does not have a strong name', this happens because my DLL references a COM object and the COM proxy generated by the .NET framework doesn't have a 'Strong Name', Note that the referenced COM DLL wrapper is automatically generated by the .NET Framework so no 'Strong name' can be associated with it....

How could I resolve the problem?
Is it possible to associate a Referenced COM wrapping assembly with a 'Strong Name'? How?

ThanX
Nadav.
 
J

Jan Tielens

Check out following article on MSDN: Generating Primary Interop Assemblies
http://tinyurl.com/ysbbd

There are two ways to generate a primary interop assembly:
Using the Type Library Importer (Tlbimp.exe) provided by the .NET Framework
SDK.
Creating primary interop assemblies manually.
You must have a cryptographic key pair to sign the assembly with a strong
name. For details, see Creating A Key Pair.

--
Greetz,
Jan
__________________________________
Read my weblog: http://weblogs.asp.net/jan
"Nadav" <[email protected]> schreef in bericht
Hi,

Introduction:
****************
I have created a .NET COM interop Assembly, this assembly references another
COM object.

The Problem:
*****************
To enable registration of the .NET assembly as a COM object I have generate
a 'Strong Name' and associate it with my assembly, upon 'Strong Name'
association I get 'Assembly generation failed -- Referenced assembly
'Interop.SALLib' does not have a strong name', this happens because my DLL
references a COM object and the COM proxy generated by the .NET framework
doesn't have a 'Strong Name', Note that the referenced COM DLL wrapper is
automatically generated by the .NET Framework so no 'Strong name' can be
associated with it....

How could I resolve the problem?
Is it possible to associate a Referenced COM wrapping assembly with a
'Strong Name'? How?

ThanX
Nadav.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top