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

Strong Name

Hello!

I have to sign my assembly (WinForms C# 1.1) with a string name.
Unfortulately, I'm forced to reference another assembly (no COMInterop
Wrapper) not being signed with a strong name. This results in an compiler
error preventing my assembly from being build. I cannot influence anything
on the creation of the referenced assembly; all I have is a managed dll.

Is there any chance to sign my assembly; if so, how ?
Apr 26 '07 #1
3 4890
The following assumes you are working with a copy of your dll, so if
something goes wrong you still have the original to try again.

You can sign assemblies at the command line using the following tool:

signtool.exe sign /n "Your Company Code Signing" /t
http://timestamp.verisign.com/scripts/timstamp.dll yourlib.dll

Use the VS2005 CMD prompt so it will be in the path. At least, this is how I
do it with .NET 2.0. The previous tools:

signcode -cn "Your Company Code Signing" yourlib.dll -t
http://timestamp.verisign.com/scripts/timstamp.dll

Either way, the timestamp piece is very important. If you don't use the
timestamp, the signing still works. The problems start when the certificate
expires and you didn't use the timestamp, and yes, all certifcates I've
worked with expire.

HTH:
Randy

"Michael Voss" wrote:
Hello!

I have to sign my assembly (WinForms C# 1.1) with a string name.
Unfortulately, I'm forced to reference another assembly (no COMInterop
Wrapper) not being signed with a strong name. This results in an compiler
error preventing my assembly from being build. I cannot influence anything
on the creation of the referenced assembly; all I have is a managed dll.

Is there any chance to sign my assembly; if so, how ?
Apr 26 '07 #2
I wrote:
I have to sign my assembly (WinForms C# 1.1) with a string name.
OOOPS! Typo! --------------------------------------------^
Should've been "strong" ;-)
Apr 27 '07 #3
Hi !
randy1200 wrote:

[...snip...]
signcode -cn "Your Company Code Signing" yourlib.dll -t
http://timestamp.verisign.com/scripts/timstamp.dll
[...snip...]

Unfortunately, you'd need to use a certificate instead of a .snk-file to use
signcode.exe. I'll have to figure out if my company owns a certificate, but
that's at least one hint.

Thanks a lot!
Apr 27 '07 #4

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

Similar topics

0
by: Mário Sobral | last post by:
Hi, I created an assembly (let's call it assembly (B)) that returns a localized resource for a given key (similar to System.Globalization.ResourceManager). I checks if the caller assembly (let's...
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...
1
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:...
6
by: Manuel Lopez | last post by:
Hello, I have a Web Project (UserControls.dll) with some user controls that is shared by many asp.net web applicattions. What we do is copy UserControls.dll to all the applications bin...
5
by: Gopal Krish | last post by:
Hello, Can anyone tell me how to strong name a web page? Thanks Gopal
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...
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...
6
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
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,...
0
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...
0
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...
0
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,...

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.