Using Web.Config from Program


A

Ahmed Al-Lakani

hi,
i wrote program that is located in my bin folder of my web application, i
want this program to use my web.config which is not on the same folder,
in other words i want this program to use another config file other than
app.config

thanks
Ahmed Al-Lakani
 
Ad

Advertisements

E

Evan Camilleri

web.config is a normal XML file... so i guess you'd have to use XMLReader to
read it to get anything you want.... i am assuming you need 'parameters' to
your program
 
Ad

Advertisements

A

Ahmed Al-Lakani

the problem that i want to keep my code as it is

the code is written as the following
ConfigurationManager.AppSettings["TasksXMLPath"]

I want the minimum modification to my code,
 

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