473,382 Members | 1,814 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,382 software developers and data experts.

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 4108
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*****@discussions.microsoft.com> wrote in message
news:42**********************************@microsof t.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*****@discussions.microsoft.com> wrote in message
news:AE**********************************@microsof t.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
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:...
10
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...
2
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...
20
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:...
10
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...
1
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...
10
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...
8
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...
1
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. ...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.