473,326 Members | 2,095 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,326 software developers and data experts.

Can strongly named assembly1 reference non-strongly named assembly2 ?

When I try to use strongly named assembly1 that references
non-strongly named assembly2 I get the following error:

"The located assembly '<assembly2 name>' is not strongly named."

How can I force strongly named assembly1 to reference non-strongly named
assembly2 ?
--
Best regards,

Oleg Subachev
su******@ural.ru
Nov 17 '05 #1
5 1513
How can I force strongly named assembly1 to reference non-strongly named
assembly2 ?


You can't. You can still load the assembly dynamically (Assembly.Load)
at runtime though.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 17 '05 #2
AFAIK, no, you must sign assembly 2 with sn.exe. For ActiveX controls, see
http://blogs.msdn.com/shawnfa/archiv...13/352636.aspx

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"Oleg Subachev" <ol**@urvb.ru> escribió en el mensaje
news:O5**************@TK2MSFTNGP10.phx.gbl...
When I try to use strongly named assembly1 that references
non-strongly named assembly2 I get the following error:

"The located assembly '<assembly2 name>' is not strongly named."

How can I force strongly named assembly1 to reference non-strongly named
assembly2 ?
--
Best regards,

Oleg Subachev
su******@ural.ru

Nov 17 '05 #3
No you can not. But why should you want to? You have an assembly1. And
because you're concerned about security you sign it with a strong name. If
you could reference to an assembly which is not signed. The profit of signing
assembly1 is gone.
"Oleg Subachev" wrote:
When I try to use strongly named assembly1 that references
non-strongly named assembly2 I get the following error:

"The located assembly '<assembly2 name>' is not strongly named."

How can I force strongly named assembly1 to reference non-strongly named
assembly2 ?
--
Best regards,

Oleg Subachev
su******@ural.ru

Nov 17 '05 #4
> No you can not. But why should you want to? You have an assembly1. And
because you're concerned about security you sign it with a strong name. If
you could reference to an assembly which is not signed. The profit of signing assembly1 is gone.


The problem arises from the fact that assembly2 is .NET generated COM
Interop
wrapper assembly for Win32 Com server :-(
--
Best regards,

Oleg Subachev
su******@ural.ru
Nov 17 '05 #5
The problem arises from the fact that assembly2 is .NET generated COM
Interop
wrapper assembly for Win32 Com server :-(


You can give those a strong name too, just like any other assembly.
Use Tlbimp with the /keyfile (or /keycontainer) option, or set the
Wrapper Assembly Key File option in the VS project properties dialog.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 17 '05 #6

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

Similar topics

3
by: ded' | last post by:
Hello ! I've read in a magazine "reference parameter in operator= must be const, because in C++, temporary objects are const" and then my operator would not work with temporary objets. But,...
5
by: klaus triendl | last post by:
hi, recently i discovered a memory leak in our code; after some investigation i could reduce it to the following problem: return objects of functions are handled as temporary objects, hence...
41
by: Berk Birand | last post by:
Hi, I am just learning about the array/pointer duality in C/C++. I couldn't help wondering, is there a way to pass an array by value? It seems like the only way to do is to pass it by...
8
by: SpOiLeR | last post by:
Hello! I have a matrix class like this: class MyObject; // MyMatrix is contains MyObjects class MyMatrix { public: ...
6
by: amparikh | last post by:
I know this is something fundamental and I ought to have known it, but somehow this seems to be confusing me a lot. Fundamentally, rvalues and/or temporaries can be bound only to constant...
1
by: ank | last post by:
Hi, all. I've come to think of the idea of automatic initialization/deinitialization of non-local reference count pointer. I've made an assumption that the user of the pointer only read...
3
by: George2 | last post by:
Hello everyone, I am debugging MSDN code from, http://msdn2.microsoft.com/en-us/library/0eestyah(VS.80).aspx here is my output, 1>main.cpp
17
by: George2 | last post by:
Hello everyone, This is my understanding of non-const reference, const reference and their relationships with lvalue/rvalue. Please help to review whether it is correct and feel free to correct...
13
by: asm23 | last post by:
Hi,I need some help to clarify the warning "initial value of reference to non-const must be an lvalue". I'm searching in this groups to find someone has the same situation like me. I found in...
5
by: Daniel Oberhoff | last post by:
Hi, Can someone more proficient in the details of the c++ type system please tell me how I can instantiate the for constesses of references that I think should be possible: 1. non-constant...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.