Click here to Skip to main content
15,885,757 members
Home / Discussions / C#
   

C#

 
AnswerRe: OleDbDataReader Question - Urgent- Please Help!!! Pin
Pete O'Hanlon5-Sep-07 11:48
mvePete O'Hanlon5-Sep-07 11:48 
QuestionMultiple forms subscribing to the same event and data? Pin
basi00145-Sep-07 10:42
basi00145-Sep-07 10:42 
QuestionOleDbDataReader Question C# Pin
aro19815-Sep-07 10:26
aro19815-Sep-07 10:26 
QuestionThrowing events in unmanaged code Pin
Berlus5-Sep-07 10:12
Berlus5-Sep-07 10:12 
AnswerRe: Throwing events in unmanaged code Pin
Judah Gabriel Himango5-Sep-07 11:33
sponsorJudah Gabriel Himango5-Sep-07 11:33 
AnswerRe: Throwing events in unmanaged code Pin
Luc Pattyn5-Sep-07 11:48
sitebuilderLuc Pattyn5-Sep-07 11:48 
QuestionQuery Regarding SetPublicKeyToken Pin
Amar Chaudhary5-Sep-07 8:54
Amar Chaudhary5-Sep-07 8:54 
AnswerRe: Query Regarding SetPublicKeyToken Pin
TJoe5-Sep-07 9:08
TJoe5-Sep-07 9:08 
When signing assemblies a private and public key are generated by the company distributing the assembly. The company keeps the private key in a secure location. The public key is sent along with the assembly. When the company signs an assembly with the private key, third party users can then use the public key to verify that the assembly has not changed. Basicaly it allows users to detect if someone has tampered with the assembly.

Now, assemblies have four pieces of information to describe their full name. They are Name, Version, Culture, and PublicKeyToken. The PublicKeyToken is the public key which is used to validate that the assembly has not changed.

Now, it is possible to change the assembly and simply sign it will a different private key and update the PublicKeyToken appropriately. But in this case, you application is typically tied to the assembly using the full name (which include the correct public key). So in this case your application won't open the assembly because the public key is not correct.

So, long story short. If you excluded the public key then the assembly would still load, but then someone could drop in a "hacked" version of the assembly and your application would happily load it.

Take care,
Tom

-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com

JokeRe: Query Regarding SetPublicKeyToken Pin
Amar Chaudhary5-Sep-07 9:11
Amar Chaudhary5-Sep-07 9:11 
QuestionRe: Query Regarding SetPublicKeyToken Pin
Amar Chaudhary5-Sep-07 9:13
Amar Chaudhary5-Sep-07 9:13 
AnswerRe: Query Regarding SetPublicKeyToken Pin
Dave Kreskowiak5-Sep-07 9:17
mveDave Kreskowiak5-Sep-07 9:17 
GeneralRe: Query Regarding SetPublicKeyToken Pin
Amar Chaudhary5-Sep-07 9:54
Amar Chaudhary5-Sep-07 9:54 
AnswerRe: Query Regarding SetPublicKeyToken Pin
TJoe5-Sep-07 9:21
TJoe5-Sep-07 9:21 
JokeRe: Query Regarding SetPublicKeyToken Pin
Amar Chaudhary5-Sep-07 9:39
Amar Chaudhary5-Sep-07 9:39 
GeneralRe: Query Regarding SetPublicKeyToken Pin
TJoe5-Sep-07 9:50
TJoe5-Sep-07 9:50 
GeneralRe: Query Regarding SetPublicKeyToken Pin
Amar Chaudhary5-Sep-07 9:58
Amar Chaudhary5-Sep-07 9:58 
Questioncan u help me with a if question? Pin
andredani5-Sep-07 8:39
andredani5-Sep-07 8:39 
AnswerRe: can u help me with a if question? Pin
Larantz5-Sep-07 8:44
Larantz5-Sep-07 8:44 
AnswerRe: can u help me with a if question? Pin
TJoe5-Sep-07 8:46
TJoe5-Sep-07 8:46 
GeneralRe: can u help me with a if question? Pin
andredani6-Sep-07 0:32
andredani6-Sep-07 0:32 
GeneralRe: can u help me with a if question? Pin
TJoe6-Sep-07 1:58
TJoe6-Sep-07 1:58 
GeneralRe: can u help me with a if question? Pin
andredani6-Sep-07 3:08
andredani6-Sep-07 3:08 
GeneralRe: can u help me with a if question? Pin
TJoe6-Sep-07 3:15
TJoe6-Sep-07 3:15 
GeneralRe: can u help me with a if question? [modified] Pin
andredani6-Sep-07 3:34
andredani6-Sep-07 3:34 
GeneralRe: can u help me with a if question? Pin
TJoe6-Sep-07 3:40
TJoe6-Sep-07 3:40 

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.