473,242 Members | 1,544 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,242 software developers and data experts.

Configuration System failed to initialize

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
1 18989
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: phillip | last post by:
This is interesting, I have attached my web.config file and the exception I have been logging. I created a library which provide data access to a database and a control system. The library is...
0
by: Vish | last post by:
Hi, Does anybody from microsoft know about the WMI events set up on the Caching Configuration block ? I am regulalrly getting this error even if i have installed all the possible Enterprise...
1
by: Dhruba Bandopadhyay | last post by:
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm....
4
by: Michael Lang | last post by:
I was basically wanting to know how to use the System.Configuration namespace to be able to load an arbitrary number of unknown attributes on an element in a custom section in the .config into a...
7
by: =?Utf-8?B?RG91Z2llIEJyb3du?= | last post by:
Hi I've written custom configuration section (inherits from System.Configuration.ConfigurationSection) to simplify the contents of the config file and to make life easier when accessing them in...
3
by: Mike | last post by:
Hi I have problem as folow: Caught Exception: System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Request for the permission of type...
0
by: =?Utf-8?B?U3VzYW4=?= | last post by:
We are trying to move to a 64 bit architecture, but I'm still having some issues. I have the code with the 32 bit version of Oracle working fine on a 64 bit computer with Windows Server 2003 (also...
1
by: =?Utf-8?B?SmFzb24=?= | last post by:
Hi all, I have set up ODBC connection through data source configuration wizard and I can run my application normally. But without any changes of my application & ODBC connection, the error is...
2
by: =?Utf-8?B?TWljaGFlbCBDb25yb3k=?= | last post by:
I added a user setting to my app. When I install it, I get: "Configuration system failed to initialize. Unrecognized configuration section userSettings)" The path to the file is correct... I...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.