By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,853 Members | 2,246 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,853 IT Pros & Developers. It's quick & easy.

Help on configuration file sample

P: n/a
Dear all,

I just start to implement a configuration file for my
application with appSettings section and others.

As a startup phase I simply take some ready made example
and see how it works.
And unfortunatly I am not able to retrive any data from
the example

I have the following configuratin file sample :

<configuration>
<appSettings>
<add key="Application Name"
value="MyApplication" />
</appSettings>
</configuration>

this file is called as the name of my
application.exe.config

then in a class I have following lines:
dim appname as string
appname = configuration.ConfigurationSettings.AppSettings
("Application Name")

by executing that line, appname variable return nothing

whats is wrong?

thnaks
regards
Jul 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.