re: Dynamic Documentation of Web.Config
From: Chris Mohan (chrismo1-nospam--_at_-~~nospam__yahoo.com)
Date: 03/10/04
- Next message: azure ss: "Control inherits HtmlInputFile"
- Previous message: Mark Olbert: "Re: Persisting Events in WebControls"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 10 Mar 2004 09:06:13 -0800
RE: - >From: Alvin Bruney [MVP] >Your post went unanswered. Have you resolved this >issue? If you still need >help, please post the original question with your request.
Thanks. I was about to repost my question when I found the answer. In case anyone else wondered what the answer is, here's an article that discusses exactly what I had asked about:
http://www.informit.com/articles/article.asp?p=29469&seqNum=5
http://www.informit.com/articles/article.asp?p=29469&seqNum=4
ASP.NET Extensibility With XML
Accessing web.config Using System.Xml
Likewise, the framework has a method called: AppSettingsReader.GetValue
See the documentation here:
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemconfigurationappsettingsreadermemberstopic.asp
The original question:
Hi,
Question: I need to document the web.config settings of all the asp.net apps that my company builds/maintains.
I would like to code a solution that will present the settings dynamically. Since this is the delicate web.config file I wonder if this is a bad idea and what, if any impact this would have on each application's stability, performance, etc.
The plan: create a function and pass the UNC path of each web config as a parameter. The function would then probably use a stream reader or xmlReader to retreive each file's content in order to write the returned results to a page.
Will the act of the reader object accessing the config file effect the site's performance or stability in any way? I may do this for the global.asax file as well and my same question applies.
The results will write to the page and link each key/value tag to its corresponding MSDN documentation
ie: <pages enableViewStateMac="false" /> would link to: ms-help://MS.NETFrameworkSDKv1.1/cpgenref/html/gngrfpagessection.htm
Thanks,
-Chris
Question: will accessing a web config file with either a streamReader object or xmlReader object to read the file's contents effect the performance or stability of a web app?
Scenario: I need to document the web.config settings of all the asp.net apps that my company builds/maintains and I would like to code a solution that presents the settings of each app dynamically(ie: in real time).
- Next message: azure ss: "Control inherits HtmlInputFile"
- Previous message: Mark Olbert: "Re: Persisting Events in WebControls"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|