473,396 Members | 2,003 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.

OpenWebConfiguration

Roy
Does WebConfigurationManager.OpenWebConfiguration(strin g) only open the
web.config file regardless of the argument string?

ex:
Configuration config =
WebConfigurationManager.OpenWebConfiguration("~/myFile.config");

When I use the above code, the web.config file is always opened - never
myfile.config.

Feb 21 '06 #1
1 2407
Roy
I've resolved this issue by using a derivation of the code located at:
http://www.codeproject.com/csharp/cu...ile_reader.asp

Feb 22 '06 #2

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

Similar topics

3
by: lindsay.manning | last post by:
I understand it is a beta and I am just wondering if this is a bug that will be fixed or if anyone might be able to shed some light on what is happenning? I am using VWD on WinXP Pro and SQL...
2
by: keithb | last post by:
Can someone suggest a course of action? Thanks, Keith Using the ASP.NET Website Administration tool to set up security, I get the following error message: An error was encountered. Please...
0
by: Tim_Mac | last post by:
hi, i'm trying to read the system.web section of the web.config in my web application. the problem is that the configuration returned is not the one in my application root. i've tried all sorts...
0
by: Shimon Sim | last post by:
I have following error when I try to "Manage access rules". I am using my role provider and wanted to know if this could be caused by my code. Thanks....
0
by: Ben | last post by:
I'm in the process of learning how to set up personalization for a page with web parts, and I've hit a problem I can't resolve. I built an example that works, and in that project, I can open the...
4
by: xeroxero | last post by:
I have multiple HTTPModules defined in my ASP.NET 2.0 web site, and want to remove/add one via a web page button click. I know that making a change will cause the web app to restart, which is what...
0
by: vikramp | last post by:
Hi, I am storing theme in web.config using <pages theme="mytheme"/>. I am then using the following code to read it from my webpage: Configuration config =...
10
by: eagle | last post by:
I have a web.config in my application that contains the connection strings to all my datasources. I want to move these connection strings to another web config up the folder hierarchy so that all...
2
by: =?Utf-8?B?TWlrZSBNaWtl?= | last post by:
Multiple problems I believe are related. First SqlDatasource in designer "Object reference not set to an instance of an object." I believe problems is caused by unable to read and bind the...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
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.