Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How do I strongly name an assembly

Posted on 2013-02-05
2
Medium Priority
?
407 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 2000 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

916 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