Configuration System failed to initialize

G

Guest

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>
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top