Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / March 2005

Tip: Looking for answers? Try searching our database.

Creating Strong-Name Assembly

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mag - 03 Mar 2005 06:23 GMT
I have created a component using VB.NET and trying to register it in the GAC.
To do that I tried to sign my assembly with a strong name and I encountered
2 problems.

Problem 1:
I can't find the "Strong name" option under the "Common Properties" of my
project's Property Page.
Problem 2:
I added the following
<assembly: AssemblyKeyFileAttribute("key.snk")>
to my component (using Visual Basic) and received the error message that
they can't find the specified file. My key file in residing in the same
folder as my solution and project files.
I also encountered the same error message when I tried to use the Assembly
linker to sign my assembly with a strong name.

I am using Visual Studio .NET 2003.
Mattias Sj?gren - 03 Mar 2005 09:45 GMT
>Problem 2:
>I added the following
><assembly: AssemblyKeyFileAttribute("key.snk")>

Try making it "..\..\key.snk"

Mattias

Signature

Mattias Sjögren [MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

MagLim - 03 Mar 2005 09:53 GMT
It works now after specifying the full path.
Thanks.

"Mattias Sjögren" wrote:

> >Problem 2:
> >I added the following
[quoted text clipped - 3 lines]
>
> Mattias

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.