Advertisement

04.20.2008 at 08:44PM PDT, ID: 23338541
[x]
Attachment Details

Read web.config from Windows App

Asked by Dabas in .NET Framework 2.x, .Net Editors & IDEs, Visual Studio

Tags:

I have placed an executable in c:\inetpub\wwwroot
I would like this application to read the web.config file in that folder and read its AppSettings using the ConfigurationManager namespace.

Sounds easy, does it not?
Well, I have not been able to do so without resorting to reading the web.config as an XmlDocument.

I have tried using
System.Web.Configuration.WebConfigurationManager.AppSettings
and
System.Configuration.ConfigurationManager.OpenExeConfiguration

without success.

Does anybody have any futher ideas?Start Free Trial
[+][-]04.20.2008 at 08:53PM PDT, ID: 21398770

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .NET Framework 2.x, .Net Editors & IDEs, Visual Studio
Tags: .NET 2005
Sign Up Now!
Solution Provided By: naspinski
Participating Experts: 2
Solution Grade: A
 
 
[+][-]04.20.2008 at 09:10PM PDT, ID: 21398820

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.20.2008 at 09:11PM PDT, ID: 21398823

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 09:06PM PDT, ID: 21552246

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.17.2008 at 03:24PM PDT, ID: 21590918

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 - Hierarchy / EE_QW_2_20070628