471,593 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

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.ShDocVw. 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.ShDocVw 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 2151
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.com

"Shiro" <st**********@focus-solutions.co.uk> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.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.ShDocVw. 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.ShDocVw 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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Jason Garland \(Secure Access Pty Ltd\) | last post: by
1 post views Thread by Jack Menendez | last post: by
26 posts views Thread by Vish | last post: by
reply views Thread by Tanja Krammer | last post: by
reply views Thread by =?Utf-8?B?d29taW4=?= | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by Anwar ali | last post: by

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.