Hello,
Thanks for your post. As I understand, you want to use custom configuration
data in a DLL assembly which will be used other than ASP .NET application.
Please correct me if there is any misunderstanding. I'd like to share the
following information with you:
1. You can create a .config file for your component with your custom
configuration data in the folder where the executable file (which load the
DLL) resides. Please refer to the following KB article for detailed
information:
HOW TO: Use Custom Configuration Data in a Visual Basic .NET Component
http://support.microsoft.com/?id=321585
2. If you want to create a section handler of you own, you need to extends
the interface IConfigurationSectionHandler. I believe the following article
and sample are helpful:
IConfigurationSectionHandler Interface
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfSystemConfigurationIConfigurationSectionHandlerClassTopic.asp
GotDotNet User Sample: Alternative Config file section readers
http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=f184e
04a-37be-48d4-91ad-6eec7552fd40
Please feel free to let me know if you have any problems or concerns.
Regards,
HuangTM
Microsoft Online Partner Support
MCSE/MCSD
Get Secure! --
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.