473,881 Members | 1,570 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Strong Name Problems

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 (sharedfunction s.dll), referenced by the
original DLL. Now if I run this from a VB test app, it works fine.
However, the 'gacutil' now fails claiming 'reporting.dll' needs a strong
name.

I've tried created an *.snk file via 'my project' for 'reporting.dll' , but I
get another error then within VB saying 'Error 1 Unable to emit assembly:
Referenced assembly 'SharedFunction s' does not have a strong name'. Again I
created an *.snk file for this DLL but the error just seems to propagate
down to refernced Microsoft dll's.

I'm stumped. Any ideas please.

Chubbly
May 31 '06 #1
10 10694
You need to write code to point that snk file with the dll, in the AssemblyInfo file:

<Assembly: AssemblyVersion ("1.0.0.0")>
<Assembly: AssemblyFileVer sion("1.0.0.0") >
<Assembly: AssemblyKeyFile ("C:\somedirect ory\somefile.sn k")>

[]s
Cesar
"Chubbly Geezer" <ch************ @newsgroup.nosp am> wrote in message news:ur******** ******@TK2MSFTN GP03.phx.gbl...
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 (sharedfunction s.dll), referenced by the
original DLL. Now if I run this from a VB test app, it works fine.
However, the 'gacutil' now fails claiming 'reporting.dll' needs a strong
name.

I've tried created an *.snk file via 'my project' for 'reporting.dll' , but I
get another error then within VB saying 'Error 1 Unable to emit assembly:
Referenced assembly 'SharedFunction s' does not have a strong name'. Again I
created an *.snk file for this DLL but the error just seems to propagate
down to refernced Microsoft dll's.

I'm stumped. Any ideas please.

Chubbly

May 31 '06 #2
But 2005 has no assembly file. It appears to be part of 'My Project'.
"ronchese" <info(a)carsoft net.com.br> wrote in message news:O1******** ******@TK2MSFTN GP03.phx.gbl...
You need to write code to point that snk file with the dll, in the AssemblyInfo file:

<Assembly: AssemblyVersion ("1.0.0.0")>
<Assembly: AssemblyFileVer sion("1.0.0.0") >
<Assembly: AssemblyKeyFile ("C:\somedirect ory\somefile.sn k")>

[]s
Cesar
"Chubbly Geezer" <ch************ @newsgroup.nosp am> wrote in message news:ur******** ******@TK2MSFTN GP03.phx.gbl...
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 (sharedfunction s.dll), referenced by the
original DLL. Now if I run this from a VB test app, it works fine.
However, the 'gacutil' now fails claiming 'reporting.dll' needs a strong
name.

I've tried created an *.snk file via 'my project' for 'reporting.dll' , but I
get another error then within VB saying 'Error 1 Unable to emit assembly:
Referenced assembly 'SharedFunction s' does not have a strong name'. Again I
created an *.snk file for this DLL but the error just seems to propagate
down to refernced Microsoft dll's.

I'm stumped. Any ideas please.

Chubbly

Jun 1 '06 #3
OK, so I found the AssemblyInfo.vb file. It now contains:
<Assembly: AssemblyTitle(" WARC_Subs_Repor ting")>

<Assembly: AssemblyDescrip tion("WARC_Subs _Reporting")>

<Assembly: AssemblyCompany ("WARC")>

<Assembly: AssemblyProduct ("Subscriptions ")>

<Assembly: AssemblyCopyrig ht("Copyright © 2006")>

<Assembly: AssemblyTradema rk("")>

<Assembly: AssemblyVersion ("1.0.0.2")>

<Assembly: AssemblyFileVer sion("1.0.0.2") >

<Assembly: AssemblyKeyFile ("C:\WARC\VB.Ne t\Subscriptions \WARCSubscripti onsLetterGenera tor\Warc_Subs_R eporting.snk")>

<Assembly: ComVisible(True )>

'The following GUID is for the ID of the typelib if this project is exposed to COM

<Assembly: Guid("c7bcfd3f-c4d4-45eb-9c86-41cba6e65d74")>

But it still propagates down to the referenced Microsoft dll's.

"Chubbly Geezer" <ch************ @newsgroup.nosp am> wrote in message news:u$******** ******@TK2MSFTN GP05.phx.gbl...
But 2005 has no assembly file. It appears to be part of 'My Project'.
"ronchese" <info(a)carsoft net.com.br> wrote in message news:O1******** ******@TK2MSFTN GP03.phx.gbl...
You need to write code to point that snk file with the dll, in the AssemblyInfo file:

<Assembly: AssemblyVersion ("1.0.0.0")>
<Assembly: AssemblyFileVer sion("1.0.0.0") >
<Assembly: AssemblyKeyFile ("C:\somedirect ory\somefile.sn k")>

[]s
Cesar
"Chubbly Geezer" <ch************ @newsgroup.nosp am> wrote in message news:ur******** ******@TK2MSFTN GP03.phx.gbl...
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 (sharedfunction s.dll), referenced by the
original DLL. Now if I run this from a VB test app, it works fine.
However, the 'gacutil' now fails claiming 'reporting.dll' needs a strong
name.

I've tried created an *.snk file via 'my project' for 'reporting.dll' , but I
get another error then within VB saying 'Error 1 Unable to emit assembly:
Referenced assembly 'SharedFunction s' does not have a strong name'. Again I
created an *.snk file for this DLL but the error just seems to propagate
down to refernced Microsoft dll's.

I'm stumped. Any ideas please.

Chubbly

Jun 1 '06 #4
Hello,

We may try a simple test to isolate the problem, if we create a very simple
ASP.NET application on the server and display some Date and currency value,
will they in correct format?

Luke Zhang
Microsoft Online Community Support

=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Jun 2 '06 #5
Please ignore the previous message.

Regarding the issue, what did you mean "propagates down to the referenced
Microsoft dll's". Can you tell what are the "Microsoft dlls" here? Are they
also not trong named?

Regards,
Luke Zhang
Microsoft Online Community Support

=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Jun 2 '06 #6
I am working with 2 dll's.

WARC_Subs_Repor ting.dll
which contains all reporting functionality and also references

WARC_Standard_F unctions.dll
which as the name suggests contain standard functionality. This references

Microsoft.Pract ices.Enterprise Library.Data.dl l
which is part of the 2006 Data Application Blocks from MS.
If I assign a strong name to WARC_Subs_Repor ting.dll I get the massage
"Error 8 Unable to emit assembly: Referenced assembly
'WARC_Standard_ Functions' does not have a strong name"

so I then assign a strong name to WARC_Standard_F unctions.dll and get the
massage
"Error 8 Unable to emit assembly: Referenced assembly
'Microsoft.Prac tices.Enterpris eLibrary.Data' does not have a strong name"

Chubbly
"Luke Zhang [MSFT]" <lu******@onlin e.microsoft.com > wrote in message
news:Rq******** ******@TK2MSFTN GXA01.phx.gbl.. .
Please ignore the previous message.

Regarding the issue, what did you mean "propagates down to the referenced
Microsoft dll's". Can you tell what are the "Microsoft dlls" here? Are
they
also not trong named?

Regards,
Luke Zhang
Microsoft Online Community Support

=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Jun 5 '06 #7
Still looking for a solution I'm thinking that the problem is as simple as
the fact 'Microsoft.Prac tices.Enterpris eLibrary.Data' does not have a strong
name.
Seems rather obvious really considering it was distributed with all source
code.
I am now trying to assign a strong name but there seem to be a few issues
here also.

Chubbly
"Chubbly Geezer" <ch************ @newsgroup.nosp am> wrote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
I am working with 2 dll's.

WARC_Subs_Repor ting.dll
which contains all reporting functionality and also references

WARC_Standard_F unctions.dll
which as the name suggests contain standard functionality. This
references

Microsoft.Pract ices.Enterprise Library.Data.dl l
which is part of the 2006 Data Application Blocks from MS.
If I assign a strong name to WARC_Subs_Repor ting.dll I get the massage
"Error 8 Unable to emit assembly: Referenced assembly
'WARC_Standard_ Functions' does not have a strong name"

so I then assign a strong name to WARC_Standard_F unctions.dll and get the
massage
"Error 8 Unable to emit assembly: Referenced assembly
'Microsoft.Prac tices.Enterpris eLibrary.Data' does not have a strong name"

Chubbly
"Luke Zhang [MSFT]" <lu******@onlin e.microsoft.com > wrote in message
news:Rq******** ******@TK2MSFTN GXA01.phx.gbl.. .
Please ignore the previous message.

Regarding the issue, what did you mean "propagates down to the referenced
Microsoft dll's". Can you tell what are the "Microsoft dlls" here? Are
they
also not trong named?

Regards,
Luke Zhang
Microsoft Online Community Support

=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====

(This posting is provided "AS IS", with no warranties, and confers no
rights.)


Jun 5 '06 #8
Hello Chubbly,

The Enterprise Library is not strong named by default, if you need to use
it in a strong named assembly, you need to add a key to the project and
recompile it. Here are some comments on this issue:

http://timstall.dotnetdevelopersjour..._tips_for_stro
ng_names_and_ve rsions.htm

Hope this help,

Luke Zhang
Microsoft Online Community Support

=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Jun 6 '06 #9
Followed through your link and seem to have a solution thanks to below

http://www.gotdotnet.com/codegallery...3-c744ec423523

Thanks

Chubbly

"Luke Zhang [MSFT]" <lu******@onlin e.microsoft.com > wrote in message
news:FY******** ******@TK2MSFTN GXA01.phx.gbl.. .
Hello Chubbly,

The Enterprise Library is not strong named by default, if you need to use
it in a strong named assembly, you need to add a key to the project and
recompile it. Here are some comments on this issue:

http://timstall.dotnetdevelopersjour..._tips_for_stro
ng_names_and_ve rsions.htm

Hope this help,

Luke Zhang
Microsoft Online Community Support

=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Jun 6 '06 #10

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

Similar topics

4
1766
by: Derrick | last post by:
Long story short: I've been working on a project which includes both designtime and runtime components, for both the PC and Pocket PC. While testing, I've been having problems with Visual Studio loading several versions of the DLLs, resulting in Invalid Cast Exceptions. A solution which was suggested to me was to make sure all my designtime stuff is strong named and placed in the GAC. This sounds like it should work, and I am about to...
3
2549
by: Tony Jones | last post by:
I have a third party assembly that I need to strong name because the C# project I'm referencing it in will be strong named. Every time I compile my project I'm getting "Assembly generation failed -- Referenced assembly 'xxxxx' does not have a strong name". The referenced assembly is a .NET assembly that does not have a strong name. It there a way to strong name it? I DO NOT have the source code for the referenced third party assembly.
1
2667
by: Kevin | last post by:
Hi all, I have a VB.NET application distributed to all employees in our company, and only one person's PC is having problems with it. After a restart of her computer, the next time she runs my app she gets the message: .....exe - Strong name validation failed. Strong name validation failed for assembly '...'. The file may have been tampered with or it was partially signed but not fully signed with
8
2704
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
1051
by: Larry | last post by:
Are there any problems with shipping a product without a strong name, that will be for download over the internet? I am having a problem with an INTEROP.DLLNAME and the proposed fixes are not working. how dangerous, realistically, is it to ship a product that does not have a strong name? I'm having problems getting this to work. help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.KB.v10.en/enu_kbnetframeworkkb/n etframeworkkb/313666.htm
3
4899
by: spaulsamin | last post by:
Hello Everyone Have nice day!!! Please explain Strong Name key in very simple way with example and How to create it? Paul
6
5690
by: raylopez99 | last post by:
Anybody use Strong Name Signing? I think this is used by default for Resource files, which is one reason perhaps I can't get my resource files to work (somehow the public key is messed up, perhaps since I've installed so many versions of Visual Studio) RL http://msdn.microsoft.com/en-us/library/h4fa028b.aspx Deployment in Visual Studio
0
9776
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11096
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10716
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
10812
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
10400
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...
0
9552
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5780
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
4194
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3223
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.