Click here to Skip to main content
15,912,977 members
Home / Discussions / C#
   

C#

 
AnswerRe: ReLoad Form Problem Pin
Nisar Inamdar17-Jul-07 0:27
Nisar Inamdar17-Jul-07 0:27 
GeneralRe: ReLoad Form Problem Pin
monafr8117-Jul-07 1:07
monafr8117-Jul-07 1:07 
GeneralRe: ReLoad Form Problem Pin
PhilDanger17-Jul-07 4:55
PhilDanger17-Jul-07 4:55 
GeneralRe: ReLoad Form Problem Pin
Martin#17-Jul-07 20:08
Martin#17-Jul-07 20:08 
QuestionPassing a String Array in a Dictionary to a WCF service Pin
Projjal17-Jul-07 0:10
Projjal17-Jul-07 0:10 
AnswerRe: Passing a String Array in a Dictionary to a WCF service Pin
Eduard Keilholz17-Jul-07 0:57
Eduard Keilholz17-Jul-07 0:57 
Questiona question about using sn.exe - private key Pin
mhp13017-Jul-07 0:09
mhp13017-Jul-07 0:09 
AnswerRe: a question about using sn.exe - private key Pin
Mike Dimmick17-Jul-07 1:16
Mike Dimmick17-Jul-07 1:16 
The strong name key used only really matters in a few instances. It can be used to set up a new category for security settings, so that assemblies from a given manufacturer can be given higher than normal privileges (e.g. to allow access to local files by name if running from a network drive). It must also be used in building Publisher Policy assemblies used to force clients of old versions of an assembly to a newer version of the assembly - this is to ensure that only the original publisher can do this.

The strong naming keys are a pair - one public key corresponds to one private key and no other. In general, one organization should use the same strong naming key for all applications. In some cases, you may want to reserve the private key for a final release step, to protect it from being accidentally used or used maliciously. In this case, use sn -p to extract the public key and save it to a separate file. Distribute the public key to your developers and secure the original key file which contains both keys. Developers then use the /delaysign option so that the compiler leaves space for the signature in the file, and records the full name of the assembly. They will need to use sn -Vr to suppress verification for that assembly or public key token, otherwise the Framework will refuse to load the assembly. You then need to use sn -R to re-sign the assembly, using the private key, for distribution.

However, BY FAR the simplest approach is NOT to use strong naming and simply make private copies of shared assemblies in each application which uses them. The GAC is overused, in my opinion - only those assemblies which really must be shared should go in the GAC. If you're not intending to place the assembly in the GAC you should not strong-name the assembly, because the Framework uses different location rules for strong-named versus private assemblies.

Stability. What an interesting concept. -- Chris Maunder

Questiontwo commands are possible Pin
srinivassam16-Jul-07 23:52
srinivassam16-Jul-07 23:52 
AnswerRe: two commands are possible Pin
Nisar Inamdar16-Jul-07 23:59
Nisar Inamdar16-Jul-07 23:59 
AnswerRe: two commands are possible Pin
Mike Dimmick17-Jul-07 2:21
Mike Dimmick17-Jul-07 2:21 
QuestionRDLC Pin
manoj_ce16-Jul-07 23:37
manoj_ce16-Jul-07 23:37 
QuestionBest practice for ADO.NET and C# Pin
matbuk16-Jul-07 23:08
matbuk16-Jul-07 23:08 
AnswerRe: Best practice for ADO.NET and C# Pin
Colin Angus Mackay16-Jul-07 23:17
Colin Angus Mackay16-Jul-07 23:17 
GeneralRe: Best practice for ADO.NET and C# Pin
matbuk16-Jul-07 23:33
matbuk16-Jul-07 23:33 
GeneralRe: Best practice for ADO.NET and C# Pin
Colin Angus Mackay16-Jul-07 23:47
Colin Angus Mackay16-Jul-07 23:47 
GeneralRe: Best practice for ADO.NET and C# Pin
matbuk16-Jul-07 23:55
matbuk16-Jul-07 23:55 
QuestionCopying one class to another Pin
Berlus16-Jul-07 22:54
Berlus16-Jul-07 22:54 
AnswerRe: Copying one class to another Pin
Martin#16-Jul-07 23:00
Martin#16-Jul-07 23:00 
QuestionText on Video using DirectX Pin
Sukhjinder_K16-Jul-07 22:46
Sukhjinder_K16-Jul-07 22:46 
AnswerRe: Text on Video using DirectX Pin
Eduard Keilholz16-Jul-07 23:44
Eduard Keilholz16-Jul-07 23:44 
QuestionXML Serialization Pin
blackjack215016-Jul-07 22:46
blackjack215016-Jul-07 22:46 
AnswerRe: XML Serialization Pin
J4amieC16-Jul-07 23:36
J4amieC16-Jul-07 23:36 
GeneralRe: XML Serialization Pin
blackjack215017-Jul-07 1:03
blackjack215017-Jul-07 1:03 
QuestionSystem Files in Deployment Pin
RoyRose7816-Jul-07 22:30
RoyRose7816-Jul-07 22:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.