473,657 Members | 2,450 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1825
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.co m> schreef in bericht
news:Op******** ********@TK2MSF TNGP11.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
20644
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 applications." Although I have seen this before when trying to remove .NET assemblies that have been installed via an MSI package, I now get this message while trying to remove any assembly I've added to the GAC. Using gacutil does not work...
6
4809
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 that I can handle to go through my assembly and invoke the static initializer on each relevant class. This way, everything that needs to be registered will be registered before the first request to the registry object. So my questions are:
2
6398
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 to happen we had to change the context in which asp.net runs from machine to SYSTEM by modifying the machine.config file. Under Windows 2003 no matter how asp.net is set to run as either machine or system. I get the following error: ...
1
297
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 plugin must implement (by definition). Is this possible? I would prefer to do it this way because otherwise I have to make my own assemly registration process, which is obviously more of a mess. I realize that the GAC strategy could take just...
0
1151
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
1291
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 loaded". So i'm going to debug->windows->modules and i want to reffer the assembly to the correct folder (/bin), but how can i know to which assembly the registration code belongs? Generally, when u have code in project, now can u know to which...
0
1921
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 assembly with registration-free COM interop from a Win32 application. I also want to use this assembly with a .Net application that I want to deploy using ClickOnce. However when I try to install the application from the deployment location I get...
2
7315
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" Namespace="Pintexx.Components.Web.pinTab" Assembly="pinTab" That line of code was the 2nd line just below the Page Language="C#" ... in default.aspx I created a new, blank page, and attempted to copy and paste the control
0
974
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 assigned to the assembly in the COM interface is not there. Also, my HRESULT from my CreateInstance call shows "Class not registered" in debug mode. I've registered the class by hand, and still it doesn't show up in the registry. Is there some way...
0
8421
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8742
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8518
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8621
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7354
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6177
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1971
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.