473,911 Members | 5,846 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Interop signing problems

Hi

I have read the various postings relating to Interop strong name
signing and cannot find an example similar to mine.

I have stringly named my AxInterops/Interops and they all work just
fine, but problems occur when I need to reference a thirdparty's
component.

In my case I am talking about Interop.ShDocVw and AxInterop.ShDoc Vw. If
the thirdparty component also uses IE and it therefore also has its own
AxInterop/Interop files and they are also signed (with a different
signature to mine of course) I cannot get the component to run.

The problem is caused by something like this: the first AxInterop is
loaded into memory (say mine) and then when the thirdparty component
needs to use the same AxInterop it sees that this component is already
resident in memory and tries to use it, but it isn't the same
AxInterop/Interop it was compiled against as the signatures differ and
it can't load its prefered one, even if it were available, as you can't
have two assemblies in memory at the same time that to all
intent/purpose are the same.

Out of curiosity I examined Infragistics controls and they are signed
and yet the AxInterop.ShDoc Vw shipped with them is not signed, so how
do you have a signed assembly that can use a non-signed
AxInterop/Interop OR how do you resolved the problem of having a joint
use of the same Interop, but each use uses a different signature?

Please help me.....

Stuart

Nov 17 '05 #1
1 2306
Stuart,

Have you used the /namespace option on TLBIMP? You should probably
create another namespace for the types that you import (instead of the
default ones) because of situations just like this. This way, even if
another component uses another interop assembly, there shouldn't be a
conflict. Also, you might want to rename the actuall DLLs as well.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Shiro" <st**********@f ocus-solutions.co.uk > wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.com.. .
Hi

I have read the various postings relating to Interop strong name
signing and cannot find an example similar to mine.

I have stringly named my AxInterops/Interops and they all work just
fine, but problems occur when I need to reference a thirdparty's
component.

In my case I am talking about Interop.ShDocVw and AxInterop.ShDoc Vw. If
the thirdparty component also uses IE and it therefore also has its own
AxInterop/Interop files and they are also signed (with a different
signature to mine of course) I cannot get the component to run.

The problem is caused by something like this: the first AxInterop is
loaded into memory (say mine) and then when the thirdparty component
needs to use the same AxInterop it sees that this component is already
resident in memory and tries to use it, but it isn't the same
AxInterop/Interop it was compiled against as the signatures differ and
it can't load its prefered one, even if it were available, as you can't
have two assemblies in memory at the same time that to all
intent/purpose are the same.

Out of curiosity I examined Infragistics controls and they are signed
and yet the AxInterop.ShDoc Vw shipped with them is not signed, so how
do you have a signed assembly that can use a non-signed
AxInterop/Interop OR how do you resolved the problem of having a joint
use of the same Interop, but each use uses a different signature?

Please help me.....

Stuart

Nov 17 '05 #2

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

Similar topics

1
2609
by: Jason Garland \(Secure Access Pty Ltd\) | last post by:
Hi I am trying to work out how to either create a strong name wrapper for AxInterop.SHDocVw.dll I have researched the following : - 'Wrapper Assembly Key' but this is apparently for c# projects only - i tried tlbimp.exe but i get
1
2324
by: Jack Menendez | last post by:
I have a forms based plugin architecture using C# that includes help files using MSHelpServices. However, my strongly named assemblies cannot be created because Interop.MSHelpServices is not strongly named. I get the following message during a build, presumedly from AL.exe: Assembly generation failed -- Referenced assembly 'Interop.MSHelpServices' does not have a strong name What is the strategy for handling this? -- Jack Menendez...
2
6388
by: Alex Ting | last post by:
Hi Everybody, I've got this problem when signing this interop. All my project dll's are signed correctly except for this one where its a com reference. I've read the KB http://support.microsoft.com/?kbid=313666 but after trying this it still doesnt work. It either says that it cant find the file in my bin directory. Any sugguestions anyone? I've also tried to delete the .snk key and recreate it and then do the suggested instructions...
2
3935
by: Ollie | last post by:
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 -
26
10694
by: Vish | last post by:
Hi, I am trying to expose my .NET 2.0 class as a COM type using the following attributes for the attributes I have the "Register for COM Interop" build property set to true. I also have two functions in the class to register and unregister the COM with the
0
1001
by: Tanja Krammer | last post by:
Dear all, when I add a COM object to a project an Interop is generated automatically. This Com object is created in other project, so when I rebild solution it is regenerated and readded. How can I sign this interop automatically? Without redoing manually tlbimp? Thanks a lot,
0
1249
by: =?Utf-8?B?d29taW4=?= | last post by:
Hello, I have a software that I sign with a trusted certificate from Verisign (both the assemblies and the MSI packages) following Microsoft recomendations. In most of the cases I install the software with no problems, but in a certain number of places, the sofware installation fails. The symptoms are that the service I use in my software can not be launched (the service timeout is reached) and consequently the whole installation is...
1
8729
by: BillE | last post by:
<extreme frustration> I have googled and read about this, but can't seem to get a grip on it. Apparently I am being coerced into digitally signing applications. Is this true? What if I don't want to? The basic question is: If I click the "Create Test Certificate" button on the Signing tab of the properties for my application so I can publish it, what happens when I distribute the application?
1
5233
by: Bhrionn | last post by:
Hello World, I am working on implementing a build for my companies application. The scenario implemeted is producing the error: ‘Class does not support automation or does not support expected interface' when I try to run the RegFree COM interop application from a clients machine. The application works fine for all development machines when run locally or from the network. The application is run from the network so - the component is not...
0
9879
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11349
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
11057
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
9728
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
8099
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
7250
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5940
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
6142
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4776
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.