re: Dynamic Documentation of Web.Config

From: Chris Mohan (chrismo1-nospam--_at_-~~nospam__yahoo.com)
Date: 03/10/04


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).



Relevant Pages

  • Re: WSE 3.0 settings
    ... I think WSE should apply settings on fly. ... should look for the settings in the calling assembly config file (Calling ... I want to use third party DLL (Or I have to develop a DLL to be used in ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: The Problems of TeX
    ... the TeXShop documentation explains that changing the default ... settings is something that people /ought/ to be doing. ... ISTR that's not the case with MacTeX 2007, ... I have is a recipe for installing MacTeX which appears to give me what I ...
    (comp.text.tex)
  • Re: appsetting in class doesnt work
    ... In 2003 I could easily change the config file settings from inside the app, ... Dim cnfg As System.Configuration.Configuration ...
    (microsoft.public.dotnet.languages.vb)
  • Re: [SLE] Getting started with WINE in SuSE v9
    ... >>I can wholeheartedly recommend Crossover office. ... >>apps and Lotus Notes daily. ... Lotus Notes has worked under wine for some years now, ... I changed "win95" to "win98" in the config file as trying to ...
    (SuSE)
  • Re: Cascading Windows
    ... I've been suspicious for some time that Word 2003 changes settings all by ... Dim Upper As Long 'Upper boundary of array ... Do While Len> 0 ' Loop to put files into an array ... and allowing me to use the bottom 50% for the other 2 apps). ...
    (microsoft.public.word.customization.menustoolbars)