PC Review


Reply
Thread Tools Rate Thread

App config Files

 
 
DaveP
Guest
Posts: n/a
 
      12th Feb 2007
Hi all...
Looking for some advice
We have alot of services in vb6 and im re-writing them in c#...they all use
xml files for start up config
i want to write a class to support these files...
is the best way to build collection object from the xml files
thanks
DaveP


 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      12th Feb 2007
Why don't you just convert your XML "files" into the standard App.Config
schema? You can use the appSettings section for most stuff, and the
System.Configuration.ConfigurationManager class methods / properties to read
them.

Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net




"DaveP" wrote:

> Hi all...
> Looking for some advice
> We have alot of services in vb6 and im re-writing them in c#...they all use
> xml files for start up config
> i want to write a class to support these files...
> is the best way to build collection object from the xml files
> thanks
> DaveP
>
>
>

 
Reply With Quote
 
DaveP
Guest
Posts: n/a
 
      12th Feb 2007
Thanks i'll look more into the System.configuration
davep

"Peter Bromberg [C# MVP]" <(E-Mail Removed)> wrote in
message news:C0277865-6805-4D85-8FFC-(E-Mail Removed)...
> Why don't you just convert your XML "files" into the standard App.Config
> schema? You can use the appSettings section for most stuff, and the
> System.Configuration.ConfigurationManager class methods / properties to
> read
> them.
>
> Peter
>
> --
> Site: http://www.eggheadcafe.com
> UnBlog: http://petesbloggerama.blogspot.com
> Short urls & more: http://ittyurl.net
>
>
>
>
> "DaveP" wrote:
>
>> Hi all...
>> Looking for some advice
>> We have alot of services in vb6 and im re-writing them in c#...they all
>> use
>> xml files for start up config
>> i want to write a class to support these files...
>> is the best way to build collection object from the xml files
>> thanks
>> DaveP
>>
>>
>>



 
Reply With Quote
 
sloan
Guest
Posts: n/a
 
      12th Feb 2007

You should look into

"Custom Handers" for app.config files.

Go here;
2/8/2006
Smarter Email/Smtp setup with DotNet Configuration Sections (1.1 and 2.0)
http://sholliday.spaces.live.com/blog/


You're not interested in the smtp/email stuff, you're interested in how I
read xml out of the app.config file, and turn it into custome object(s).


There is downloadable code.

See
// (
http://msdn.microsoft.com/library/de...onhandlers.asp )
// also see http://support.microsoft.com/default...b;en-us;309045
// Article ID : 309045

But the code I have will demo it much faster.




"DaveP" <(E-Mail Removed)> wrote in message
news:sR2Ah.6191$(E-Mail Removed)...
> Hi all...
> Looking for some advice
> We have alot of services in vb6 and im re-writing them in c#...they all

use
> xml files for start up config
> i want to write a class to support these files...
> is the best way to build collection object from the xml files
> thanks
> DaveP
>
>



 
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
encrypting config file that aren't web config files... Ollie Riches Microsoft ASP .NET 1 4th Dec 2008 04:59 PM
What is the significance of link.exe.config and cl.exe.config files in VS2003 wn123456@gmail.com Microsoft Dot NET Framework 0 3rd May 2007 08:45 AM
app.config and user.config files Mark Microsoft Dot NET Framework 9 12th Feb 2007 03:25 PM
Re: C# 2.0: How to have app.config or web.config sections in separated files? Nicholas Paldino [.NET/C# MVP] Microsoft C# .NET 0 22nd Jan 2006 03:47 PM
Using config files other than app.config for different configurations Matthew Microsoft VB .NET 0 27th Jan 2004 10:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:59 PM.