473,503 Members | 1,953 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using Web.Config from Program

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
Feb 27 '07 #1
2 957
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
"Ahmed Al-Lakani" <ah************@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
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


Feb 27 '07 #2
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,
"Evan Camilleri" <ev**@holisticrd.com.nospamwrote in message
news:eM**************@TK2MSFTNGP06.phx.gbl...
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
"Ahmed Al-Lakani" <ah************@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>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



Feb 28 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
1964
by: Timm | last post by:
I'm trying to use ASP objects (basically formed and populated based on Web.Config settings) and I want to use them in a different non-asp program with minimal reprogramming. So, my question is how...
1
2557
by: Joseph Geretz | last post by:
I need to download a greater than 4 megabyte attachment via WSE / DIME. The only way I know how to configure this is via a .config file. Normally, the ..config file is the same name as the base...
16
9753
by: Asaf | last post by:
I am trying to create and use a COM object with C#.NET 2005. The assembly is set to "Register for COM interop" but when I am trying to call it from VB on Word 2003 I am getting this error: ...
8
28427
by: ajos | last post by:
hi frnds, im trying to convert my servlets database configuration from ms access to mysql database.however im getting some error like no driver found exception. to verify this error ive...
3
2896
by: arasub | last post by:
ep 20, 2007 11:25:57 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found...
0
7093
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
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7348
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7006
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
7467
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...
1
5021
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4685
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1519
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.