[C#]关于DLL使用.exe.config 的问题,也许以下描述有一点帮助
来源:互联网 发布:广州骏域网络 编辑:程序博客网 时间:2024/06/06 07:09
有时间看看这个gotdotnet的示例,不过它归根结底还是EXE自己读取自己的config,和我说得问题不一样,我的问题是DLL如何读取.exe.config。
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
Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=59248
- [C#]关于DLL使用.exe.config 的问题,也许以下描述有一点帮助
- [C#]关于DLL使用.exe.config 的问题,也许以下描述有一点帮助
- [C#]关于DLL使用.exe.config 的问题,也许以下描述有一点帮助
- [C#]关于DLL使用.exe.config 的问题,也许以下描述有一点帮助
- [C#]关于DLL使用.exe.config 的问题,也许以下描述有一点帮助
- [C#]DLL继承IConfigurationSectionHandler即可访问宿主的.exe.config
- [C#]DLL继承IConfigurationSectionHandler即可访问宿主的.exe.config
- [C#]DLL继承IConfigurationSectionHandler即可访问宿主的.exe.config
- [C#]DLL继承IConfigurationSectionHandler即可访问宿主的.exe.config
- [C#]DLL继承IConfigurationSectionHandler即可访问宿主的.exe.config
- [C#]DLL继承IConfigurationSectionHandler即可访问宿主的.exe.config
- 使用ILmerge合并Exe、Dll文件的帮助类
- 关于PDB与EXE/DLL 文件的匹配问题(转)
- 关于chrome中使用12px以下字号的问题
- 关于DLL new exe delete问题
- IIS 下载 .dll .exe .config的配置方法
- IIS 下载 .dll .exe .config的配置方法
- 以下关于STL的描述中,错误的有
- [收藏]无法笑傲的江湖-Sunny
- GoogleToolbar进一步想掌握IE AddressBar的控制权
- [推荐].NET XML Best Practices - Choosing an XML API
- [收藏]伟大架构师的秘密
- [C#]这个ConfigurationException异常解决了
- [C#]关于DLL使用.exe.config 的问题,也许以下描述有一点帮助
- [SQL]啊?!查询分析器的BUG?!
- [p2p-jxta]myJXTA试用体验(1)
- 话题营销在选择自由的当下只能是制造垃圾和垃圾流量
- [PM]《再论"业余"和"专业"》的o6z经典评论留念
- 数据汇总加排序
- [推荐].NET XML Best Practices - Choosing an XML API
- GoogleToolbar进一步想掌握IE AddressBar的控制权
- 爱帮网“搜索+社区”就地展开