Click here to Skip to main content
15,889,216 members
Home / Discussions / C#
   

C#

 
GeneralRe: Visual Inheritance, and Default Property Values Pin
big_trev23-Jan-06 7:54
big_trev23-Jan-06 7:54 
QuestionHow do I retrieve all my webPages + web services in .NET framework 2.0? Pin
Ronen Tidhar23-Jan-06 2:00
Ronen Tidhar23-Jan-06 2:00 
QuestionLCD Pin
sianatia23-Jan-06 1:41
sianatia23-Jan-06 1:41 
QuestionHow to call a function... Pin
Soundman32.223-Jan-06 1:17
Soundman32.223-Jan-06 1:17 
AnswerRe: How to call a function... Pin
AB777123-Jan-06 2:01
AB777123-Jan-06 2:01 
AnswerRe: How to call a function... Pin
Phil J Pearson23-Jan-06 2:20
Phil J Pearson23-Jan-06 2:20 
Questionsingle commands for DotMatrixPrinter Pin
softmusic23-Jan-06 0:58
softmusic23-Jan-06 0:58 
AnswerRe: single commands for DotMatrixPrinter Pin
Dave Kreskowiak23-Jan-06 6:11
mveDave Kreskowiak23-Jan-06 6:11 
GeneralRe: single commands for DotMatrixPrinter Pin
softmusic23-Jan-06 7:12
softmusic23-Jan-06 7:12 
GeneralRe: single commands for DotMatrixPrinter Pin
Dave Kreskowiak23-Jan-06 13:23
mveDave Kreskowiak23-Jan-06 13:23 
QuestionMIDI programing in c# Pin
softmusic23-Jan-06 0:52
softmusic23-Jan-06 0:52 
QuestionEditor Color Pin
peppepinna23-Jan-06 0:33
peppepinna23-Jan-06 0:33 
Questiononclick event not triggering ! Pin
nitya_arysys23-Jan-06 0:23
nitya_arysys23-Jan-06 0:23 
AnswerRe: onclick event not triggering ! Pin
Guffa23-Jan-06 1:14
Guffa23-Jan-06 1:14 
GeneralRe: onclick event not triggering ! Pin
nitya_arysys23-Jan-06 1:21
nitya_arysys23-Jan-06 1:21 
GeneralRe: onclick event not triggering ! Pin
Guffa24-Jan-06 1:21
Guffa24-Jan-06 1:21 
GeneralRe: onclick event not triggering ! Pin
nitya_arysys24-Jan-06 1:36
nitya_arysys24-Jan-06 1:36 
AnswerRe: onclick event not triggering ! Pin
Guffa24-Jan-06 9:35
Guffa24-Jan-06 9:35 
GeneralRe: onclick event not triggering ! Pin
nitya_arysys25-Jan-06 2:33
nitya_arysys25-Jan-06 2:33 
Questionsort column in ultrawingrid Pin
Frank23123-Jan-06 0:02
Frank23123-Jan-06 0:02 
AnswerRe: sort column in ultrawingrid Pin
NassosReyzidis23-Jan-06 3:42
NassosReyzidis23-Jan-06 3:42 
QuestionPassing reference values to C++ functions Pin
madhusri22-Jan-06 23:27
madhusri22-Jan-06 23:27 
Questionis it possible?? Pin
imsathy22-Jan-06 23:25
imsathy22-Jan-06 23:25 
QuestionCustomizing config file Pin
Celemar8222-Jan-06 22:28
Celemar8222-Jan-06 22:28 
i'm trying to add my own custom section in my config file, i've found some articles on this in VB that work, but when i rewrite it into C# i get an error, can someone please help?


this is the config file:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="myGroup">
<section name="myCustomSection"
type="System.Configuration.NameValueSectionHandler,
System, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"/>
</sectionGroup>
</configSections>

<myGroup>
<myCustomSection>
<add key="mykey" value="myvalue" />
</myCustomSection>
</myGroup>
</configuration>


this is my C# code:
NameValueCollection nvc = new NameValueCollection();
nvc = ((NameValueCollection)ConfigurationSettings.GetConfig("myGroup/myCustomSection"));
string Value = nvc["mykey"];


this is the error i get from line 2 of code:
An unhandled exception of type 'System.Configuration.ConfigurationException' occurred in system.dll

Additional information: Could not create System.Configuration.NameValueSectionHandler,
System, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089

Of all the things i've lost i miss my mind the most...!

-- modified at 4:29 Monday 23rd January, 2006
AnswerRe: Customizing config file Pin
tarasn23-Jan-06 0:07
tarasn23-Jan-06 0:07 

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.