473,396 Members | 2,011 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,396 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 19010
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.