What is the concept of strong names, DOT NET Programming

concept of strong names

Strong name is similar to GUID(It is supposed to be unique in space and time) in the COM components.Strong Name is only needed when we need to deploy assembly in the  GAC. Strong Names helps GAC in differentiation b/w the two versions. Strong names use the public key cryptography (PKC) to ensure that no one can spoof it ever.PKC use the concept of public key and private key concept.

Following are the steps  to generate a strong name and sign a assembly :-

(1) Go to "Visual Studio Command Prompt". See figure "Visual studio Command Prompt". Please Note that the samples are compiled in 2005 but 2003 users do not have to worry about it. Same type of command prompt will display in 2003 also.

 

411_visualstudio command prompt.jpg


(2) When you are in command prompt type sn.exe -k "c:\test.snk".

63_runing sn.exe

1028_succ op of sn.exe



(3) After generation of the file  view the SNK file in a simple notepad.

(4) After the SNK file is generated its time to sign project with this SNK file.

(5) Click on project -- properties and the browse the SNK file to the respective folder and compile the project.

 

 

 

49_click on lib.jpg

Posted Date: 9/18/2012 7:04:22 AM | Location : United States







Related Discussions:- What is the concept of strong names, Assignment Help, Ask Question on What is the concept of strong names, Get Answer, Expert's Help, What is the concept of strong names Discussions

Write discussion on What is the concept of strong names
Your posts are moderated
Related Questions
What's the difference b/w Unit testing, Assembly testing and Regression testing? The Unit testing is also known as the Component testing. The Unit testing ensures that the reli

I have a responsive database structure and web template. I need someone to prepare the code (.net, jquery ) to make interaction with database . Insert, edit , save . Plus a custom

What is CTS and CLS? => CLS stands for common language specification where as CTS stands for common type system. => CLS : cls is a standard for .net . cls is small set of sp

What is the main difference between Gridlayout and FlowLayout? The Grid Layout provides absolute positioning for the controls placed on the page. The Developers that have their

i want to know how can i sum quantity column in gridview and place it in first row...not in footer..in .net. Rply ASAP

Need Data Stream from Laptop to Phone Project Description: I have a notepad file that is automatically generated in a set file name and format by acquisition software and wri

How object pooling in .NET is done COM+ reduces overhead by creating object from scratch. Thus  in COM+ when object is activated its activated from pool and when its deactivate

Unity 4 iOS Pro Developer to prepare link.xml Project Description: I'm seeking an iOS developer with a Unity 4 iOS Pro license to prepare a link.xml file that will let my pro

What is serialization, how it works in .NET? Serialization is when you persist the state of an object to a storage medium so an exact copy can be re-created at a later stage. S

What advantages have Web services over Component Object Model (COM) and Distributed Component Object Model (DCOM)? The benefits of Web services over COM and DCOM are as follow