473,569 Members | 2,691 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 2277
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
2576
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
2246
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...
2
6367
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...
2
3922
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 ...
26
10641
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
993
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
1244
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...
1
8683
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...
1
5213
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...
0
7698
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...
0
7612
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...
0
8122
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...
1
7673
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...
1
5513
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...
0
3653
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...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1213
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.