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

Configuration System failed to initialize

P: n/a
I have a windows service written in C#, and whenever I start it up, I get the
error "Configuration System failed to initialize" when ever I call
ConfigurationManager.AppSettings["path"].

I tried hard coding the values, but I also have a web service I am calling
in this windows service, and as soon as the web service is initialized, I get
the same error.

This is my entire app.config Please help, I have spend like 2 hours on a
service that checks to see if files in a directory are over 5 minutes old,
which it much to long.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="path" value="C:\\ftproot\\LocalUser\\adi"/>
<add key="minutesOld" value="1"/>
<add key="taskManagerSubject" value="EdiWatcher found a possible
problem."/>
</appSettings>
<applicationSettings>
<EdiWatcher.Properties.Settings>
<setting name="EdiWatcher_localhost_TaskManager"
serializeAs="String">
<value>http://localhost/WebServices/TaskManager.asmx</value>
</setting>
</EdiWatcher.Properties.Settings>
</applicationSettings>
</configuration>
Jan 12 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
I should also mention, that I have windows apps, web apps, and web services
that are all working fine. Its just the windows services that are failing.

"Russ" wrote:
I have a windows service written in C#, and whenever I start it up, I get the
error "Configuration System failed to initialize" when ever I call
ConfigurationManager.AppSettings["path"].

I tried hard coding the values, but I also have a web service I am calling
in this windows service, and as soon as the web service is initialized, I get
the same error.

This is my entire app.config Please help, I have spend like 2 hours on a
service that checks to see if files in a directory are over 5 minutes old,
which it much to long.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="path" value="C:\\ftproot\\LocalUser\\adi"/>
<add key="minutesOld" value="1"/>
<add key="taskManagerSubject" value="EdiWatcher found a possible
problem."/>
</appSettings>
<applicationSettings>
<EdiWatcher.Properties.Settings>
<setting name="EdiWatcher_localhost_TaskManager"
serializeAs="String">
<value>http://localhost/WebServices/TaskManager.asmx</value>
</setting>
</EdiWatcher.Properties.Settings>
</applicationSettings>
</configuration>

Jan 12 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Browse more .NET Framework Questions on Bytes