|
-
Dec 18th, 2006, 01:10 PM
#1
Thread Starter
Hyperactive Member
[2.0] can't read the content in <appSettings> in the config file
I am trying to read content in the <appsettings> tag in the config file in my windowsservice application. for some reason, I can't get any thing.
FileWatcherService.exe.Config file:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="FileNameAndPath" value="C:\Code\SavvysoftValuations" />
</appSettings>
</configuration>
Code to read:
_FilePath = System.Configuration.ConfigurationSettings.AppSettings.Get("FileNameAndPath");
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|