Re: Read Configuration
- From: Cacho <jleyba@xxxxxxxxxxx>
- Date: Sat, 17 Sep 2005 00:16:12 +0200
Mattias Sjögren wrote:
Could somebody give and example of how to do it ?
System.Configuration.ConfigurationSettings.AppSettings("Desvio")
Thanks for your reply.
I did in that way but it didn't worked and I'm going to be crazy !>..
I did:
Dim ConnectionString As String Dim MargenString As String Dim Desvio As String
Desvio = System.Configuration.ConfigurationSettings.AppSettings("Desvio")
System.Console.WriteLine(Desvio)MargenString = System.Configuration.ConfigurationSettings.AppSettings("MargenString")
System.Console.WriteLine(MargenString)
ConnectionString = System.Configuration.ConfigurationSettings.AppSettings("ConnectionString")
System.Console.WriteLine(ConnectionString)
--------------
and in config file I've:
<configuration>
<appSettings>
<add key="Desvio" value="652825616" />
<add key="MargenString" value="10" />
</appSettings>
</configuration>But when I run my application I see:
--------- C:\tmp1>.\pruebaSQL.exe
Network Library=DBMSSOCN;Data Source=localhost;Initial atalog=segex;User ID=sa;Password=sa
----------------
Program showed me the string of a parameter I deleted from config file and didn't show me exsitent parameters !!!
How is posible ? Am I doing something wrong ? Is there a kind of cache that keeps data ?
Thanks in advance
X
.
- Follow-Ups:
- Re: Read Configuration
- From: Phil G.
- Re: Read Configuration
- References:
- Read Configuration
- From: Cacho
- Re: Read Configuration
- From: Mattias Sjögren
- Read Configuration
- Prev by Date: Physical and Virtual Memory
- Next by Date: Re: Set FileSize
- Previous by thread: Re: Read Configuration
- Next by thread: Re: Read Configuration
- Index(es):
Relevant Pages
|