473,626 Members | 3,427 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Strong Name Assembly Issue

Hi,

We would like our application to be signed and have a strong name. However
our application references a 3rd party .dll that does not have a strong name
and so when we compile we get the dreaded compiler error:

Assembly generation failed -- Referenced assembly 'Xxxxxxxxx' does not have
a strong name

Is there any way - perhaps with attributes - that my strong named assembly
can reference the unsigned 3rd party .dll? I think I know the answer to this
question {aka you can't} but I am asking anyway...


Nov 17 '05 #1
3 4123
Hi,

Actually, you cannot do that. It would make the whole strong name thing much
weaker if it allowed such a thing.

Is it impossible to get a strong named version of the 3rd party .dll?

Or if it would happen to be a COM Interop assembly, you might want to check
out:
http://support.microsoft.com/Default.aspx?kbid=313666
Regards
-Lenard

"Richard" <Ri*****@discus sions.microsoft .com> wrote in message
news:42******** *************** ***********@mic rosoft.com...
Hi,

We would like our application to be signed and have a strong name.
However
our application references a 3rd party .dll that does not have a strong
name
and so when we compile we get the dreaded compiler error:

Assembly generation failed -- Referenced assembly 'Xxxxxxxxx' does not
have
a strong name

Is there any way - perhaps with attributes - that my strong named assembly
can reference the unsigned 3rd party .dll? I think I know the answer to
this
question {aka you can't} but I am asking anyway...

Nov 17 '05 #2


"Lenard Gunda" wrote:
Is it impossible to get a strong named version of the 3rd party .dll?


The issue is that our application is supposed to be HIPAA {Health
Information Privacy Act} compliant. And after I was the one to push for
strong naming in a HIPAA compliant situation now I've shot myself in the
foot...

Referenced assembly is not COM; it's a 3rd party tablet support library
package. Probably is impossible to get a signed version of code; but we have
contacted them to see if they will help...

Also, we didn't really WANT to recompile the Enterprise Library but as -for
obvious reasons- it is not signed we had to do that too... Yukkk...


Nov 17 '05 #3

"Richard" <Ri*****@discus sions.microsoft .com> wrote in message
news:AE******** *************** ***********@mic rosoft.com...


Also, we didn't really WANT to recompile the Enterprise Library but
as -for
obvious reasons- it is not signed we had to do that too... Yukkk...


You don't actually need to recompile an assembly to sign. As far as I know,
AL.EXE can be used to sign after it has been compiled. You can alternatively
also use the attributes.

Take a look at the AL.EXE command line arguments (/keyfile)!
http://msdn.microsoft.com/library/de...ilityAlexe.asp

Also, here you can read more about signing:
http://msdn.microsoft.com/library/de...StrongName.asp

-Lenard
Nov 17 '05 #4

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

Similar topics

2
2083
by: John O'Neill | last post by:
Hi I have a c# application that I sign with a strong name key which is fine, but when I add a reference to IWshRuntimeLibrary I get the following error when I build my project:- error CS1577: Assembly geration failed -- Referenced assembly 'Interop.IWshRuntimeLibrary' does not have a strong name Does anyone know how I can get round this? Perhaps there is a strong name
10
2680
by: Tony Jones | last post by:
Can anyone think of a reason why a 3rd party vendor writing .NET components would NOT strong name their assemblies? What harm does adding a strong-name to assembly present - I would think none whatsoever. Strong-naming the assembly should benefit the end user just in case he/she wants to reference the assembly in another strong-named assembly or add it to the GAC. If you were a third-party vendor, would you strong-name your...
2
1928
by: John E. | last post by:
How can I compile two projects with a circular reference while giving them a strong name? There is a project that we have that has two components that reference each other e.g. A<->B thus creating A.dll and B.dll. I have a project (e.g. R with an assembly name of Com.MyCompany.R.dll) that has to use this mess and access A. So, R->A. Well, Com.MyCompany.R.dll is going in the GAC. It is set for strong name (entry in the assembly...
20
3181
by: Razzie | last post by:
Hey all, I'm really going through a small hell right now - I've completely lost it :) I made a project, using two interop libraries from exchange (created them as in this msdn article: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsmtps/html/writingmngsinks.asp). I set my project properties as 'Register as COM interop' to true, I can install it my project on my developement machine without a flaw. Great.
10
10677
by: Chubbly Geezer | last post by:
I have been working on a VB 2005 DLL which has previously been working. I would create the DLL (reporting.dll), install it, run 'gacutil' and 'regasm' and my Access 2000 DB could see it and use it. I have recently added some new functionality, which included splitting out some classes into another DLL (sharedfunctions.dll), referenced by the original DLL. Now if I run this from a VB test app, it works fine. However, the 'gacutil' now...
1
2360
by: Tim F | last post by:
Problem: I'm receiving the error "File or assembly name XXXXX or one of its dependencies, was not found." when trying to execute code in an assmebly that has both a strong-name and has been installed into the GAC. We originally had this assembly without a strong-name and we were successfully using it by referencing it when it was NOT in the GAC. The assembly was built using the 1.0 framework and we were able to call it from both 1.0...
10
1519
by: DBC User | last post by:
Hi All, Someone shed some light in to this strong name signing issue I have. My assembly uses a 3rd party controls so I end up distributing their dlls along with my assembly. I put this app in the network and to make app run from network I need to sign with strong name. But all the document I read, it says, if you have an assembly that is not strong name signed I will not able to sign my assembly. How can I sign my assembly without...
8
2679
by: per9000 | last post by:
Dear readers, I have some problems with strong keys. What I want to do is basically this. A - create an application (f.x. strongHello.dll) with a strong key. B - import the functions of this dll into a console application (f.x StrongConsoleApp.exe) and run it if I have somehow specified the public part of the strong key and not otherwise.
1
2838
by: Tom | last post by:
My unsigned DLL works in my project that references it as long as I set Copy Local = true. Now I have signed the DLL with the sn.exe generated keys but have not yet moved the DLL into the GAC. Can I use a strong named DLL outside the GAC with Copy Local = false by providing a reference to the public key? If yes to above, please tell me how to reference the public key within
0
8272
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
8644
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
8370
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
8514
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...
1
6126
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
5579
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
4208
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2632
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
2
1516
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.