PC Review


Reply
Thread Tools Rate Thread

Custom Configuration management for app.Config

 
 
Shaun
Guest
Posts: n/a
 
      25th May 2004
Hi,
I created a custom Section handler using System.configuration for Web
application to read from Web.Config File.

If I want to use the same handler to read from app.config file:
app.config is not interpreted as XML file, & the code breaks.

Here is the sample of the logic.

For Each node In section.ChildNodes
For Each element In node.ChildNodes
elementKey = element.GetAttribute("key")
elementValue = element.GetAttribute("value")
Next
Next

Kindly let me know how to use the same custom handler to read from
web.config as well as app.config file.

Thanking you
Shaun
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
custom configuration section in app.config sloan Microsoft C# .NET 1 13th May 2006 02:38 PM
reloading app.config in Configuration Management Application Block ??? Jorge Besada Microsoft Dot NET 1 18th Oct 2004 09:42 PM
Can you use the Configuration Management Application Block for app.config files? Tom Microsoft Dot NET Framework 2 7th Jul 2004 05:21 PM
Can you use the Configuration Management Application Block for app.config files? Tom Microsoft Dot NET 0 7th Jul 2004 04:20 PM
Custom Configuration management for app.Config Shaun Microsoft ASP .NET 3 26th May 2004 02:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:53 AM.