Solved

How do I strongly name an assembly

Posted on 2013-02-05
2
398 Views
Last Modified: 2013-02-06
I am trying to create a strongly named assembly for a dll in vb.net
3.5 and visual studio 2008 so that I can place it in the GAC. I have
tried reading the documentation on the web but I am still facing
issues. I am not sure what module name is when using al.exe. For my
simplist dll it has a single .vb file which contains one class called
gberror. It has one method called raise. Is the module name al.exe is
referring to gberror.raise? When I try to add the dll to the gac it
says it must be strongly named. Any help would be appreciated.

Thanks, Greg
0
Comment
Question by:gregoryew2
2 Comments
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
ID: 38858444
You do not need to use any external tool to sign an assembly, it can be done from inside Visual Studio. I am in VS2012, but I do not remember that thing to have changed since 2008.

Project...Properties...Signing tab

Check Sign the Assembly

Under Choose a strong name key, go for New.

Give a file name, Protect with a password (some features do not work with a key without a password) and make sure to take note of it. Use the default algorithm.

Click OK and you are done.

This will create a file with a .pfx extension in your project directory and add the necessary information in the project so that the compiler will use that file to sign your assembly automatically.

It is very important to keep a copy of that file and remember password. You won't be able to update your .dll if you ever use another signature.

If you have other projects that you want to sign, always reuse the same signature file by selecting Browse instead of New when you want to sign a project for the first time. If you use different files, you will eventually mix them up and risk having problems updating applications and dlls.
0
 

Author Comment

by:gregoryew2
ID: 38859644
Thanks very much for the help JamesBurger.  It worked.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now