Click here to Skip to main content
15,892,674 members
Home / Discussions / C#
   

C#

 
GeneralRe: Select node in a TreeView Pin
Uwe Keim28-Jan-04 3:09
sitebuilderUwe Keim28-Jan-04 3:09 
GeneralRe: Select node in a TreeView Pin
Heath Stewart28-Jan-04 5:38
protectorHeath Stewart28-Jan-04 5:38 
GeneralRe: Select node in a TreeView Pin
Uwe Keim28-Jan-04 5:46
sitebuilderUwe Keim28-Jan-04 5:46 
QuestionHow to disable a control in MDI form from a child form Pin
okoji Cyril26-Jan-04 20:56
okoji Cyril26-Jan-04 20:56 
AnswerRe: How to disable a control in MDI form from a child form Pin
Heath Stewart27-Jan-04 3:19
protectorHeath Stewart27-Jan-04 3:19 
GeneralC# and Scintilla Pin
yarns26-Jan-04 20:45
yarns26-Jan-04 20:45 
GeneralRe: C# and Scintilla Pin
Uwe Keim28-Jan-04 3:06
sitebuilderUwe Keim28-Jan-04 3:06 
GeneralRe: C# and Scintilla Pin
wonea25-Feb-10 1:49
wonea25-Feb-10 1:49 
QuestionReal-world commercial .NET Applications? Any? Pin
Uwe Keim26-Jan-04 18:13
sitebuilderUwe Keim26-Jan-04 18:13 
AnswerRe: Real-world commercial .NET Applications? Any? Pin
Mazdak26-Jan-04 19:27
Mazdak26-Jan-04 19:27 
GeneralRe: Real-world commercial .NET Applications? Any? Pin
Uwe Keim26-Jan-04 22:12
sitebuilderUwe Keim26-Jan-04 22:12 
AnswerRe: Real-world commercial .NET Applications? Any? Pin
Heath Stewart27-Jan-04 3:11
protectorHeath Stewart27-Jan-04 3:11 
GeneralRe: Real-world commercial .NET Applications? Any? Pin
Uwe Keim27-Jan-04 3:19
sitebuilderUwe Keim27-Jan-04 3:19 
GeneralRe: Real-world commercial .NET Applications? Any? Pin
Nick Parker27-Jan-04 6:49
protectorNick Parker27-Jan-04 6:49 
AnswerRe: Real-world commercial .NET Applications? Any? Pin
John Fisher27-Jan-04 7:08
John Fisher27-Jan-04 7:08 
Questionhow to download file not to change timestamp using HTTP Pin
yu-yu26-Jan-04 17:26
yu-yu26-Jan-04 17:26 
AnswerRe: how to download file not to change timestamp using HTTP Pin
Heath Stewart27-Jan-04 3:02
protectorHeath Stewart27-Jan-04 3:02 
GeneralRe: how to download file not to change timestamp using HTTP Pin
yu-yu27-Jan-04 15:31
yu-yu27-Jan-04 15:31 
GeneralSystem.XML.XMLDocument Pin
Anonymous26-Jan-04 16:04
Anonymous26-Jan-04 16:04 
GeneralRe: System.XML.XMLDocument Pin
Heath Stewart27-Jan-04 2:54
protectorHeath Stewart27-Jan-04 2:54 
The exception is thrown by the CLR when you don't have the specified permission. In this case, the requested permissions is a StrongNameIdentityPermissions. Reading the machine.config is a protected operation (it contains machine-sensitive information) so you're assembly has to be signed (and honestly, it should anyway).

To sign your assembly, generate a key pair (public and private keys) using "sn.exe -k KeyFile.snk" and put it somewhere safe. You should actually try to use this for all your code, but do not distribute it to anyone but - if applicable - your development team (unless you use late-signing and have a build master). Make sure you have an assembly-level AssemblyVersionAttribute and either an AssemblyKeyFileAttribute or AssemblyKeyNameAttribute. If you created your project with VS.NET, you will find these in your AssemblyInfo.cs file (but the can be placed anywhere so long as they're prefixed with [assembly: ...]). This creates a strong-named assembly.

Read the documentation about the AssemblyKey* attributes toward the bottom of the file. It's also recommended in multi-project solutions that you do not use a automatically-generated version number because things can easily get out of hand.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
QuestionThis cool thing!!...howz it done? Pin
srt726-Jan-04 13:27
srt726-Jan-04 13:27 
AnswerRe: This cool thing!!...howz it done? Pin
Colin Angus Mackay26-Jan-04 14:00
Colin Angus Mackay26-Jan-04 14:00 
GeneralRe: This cool thing!!...howz it done? Pin
srt726-Jan-04 14:55
srt726-Jan-04 14:55 
GeneralRe: This cool thing!!...howz it done? Pin
Colin Angus Mackay26-Jan-04 22:12
Colin Angus Mackay26-Jan-04 22:12 
GeneralRe: This cool thing!!...howz it done? Pin
srt726-Jan-04 17:04
srt726-Jan-04 17:04 

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.