473,394 Members | 1,951 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Cominterop Assembly registration...

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.
Nov 15 '05 #1
1 1813
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" <No*@today.com> schreef in bericht
news:Op****************@TK2MSFTNGP11.phx.gbl...
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.
Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Peter Gomis | last post by:
I have encountered a situation where I am unable to remove a .NET assembly from the GAC. The message I receive is "Assembly 'assemblyname' could not be uninstalled because it is required by other...
6
by: Outshined | last post by:
I have a class library where just about every class uses its static initializer to register with a central registry object in the same assembly. I am hoping for some sort of Assembly.Load event...
2
by: Carlos G Benevides | last post by:
I have a ASP.Net web application that has two assemblies that run under com+. Under Windows 2000 the two assemblies are added to com+ automatically when instantiated from the web site. For this...
1
by: Andy Janssen | last post by:
Hey. I'm working on a program built to support several optional plugins. I'm looking for a way to scan the GAC and find all objects in all assemblies that inherit from a certain interface that each...
0
by: Mแrio Sobral | last post by:
Hi ! I have developed a .NET library that references another .NET library. MyLibrary -> OtherLibrary I then create a COMInterop wrapper assembly to use it from a VB6 project:
2
by: ื™ื•ื ื™ ื’ื•ืœื“ื‘ืจื’ | last post by:
I'm using Dot Net Nuke but this general question: I'm trying to debug the registration code, whenever i set breakpoint on the main function i get message: "breakpoint will not be hit, no symbols...
0
by: =?Utf-8?B?Q29saXZpZXI=?= | last post by:
If anyone can help me with this I would really appreciate it: I have an assembly into which I have linked a manifest file as a Win32 resource. This is necessary since I want to use a class in this...
2
by: Beemer Biker | last post by:
I have some demo code that came with a 3rd party product. This is what it looks like (I remove html braces in case it does not print right) Register TagPrefix="pin"...
0
by: DanielP | last post by:
I'm trying to call a C# assembly from an unmanaged C++ app, but I'm having some problems. I've tracked it down to a registration problem, and a search through the registry shows that the guid I've...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.