问题描述
我正在尝试使用ASP对象(基本上是基于
Web.Config设置形成和填充),我想在不同的非asp程序中使用它们
,重新编程最少。所以,我的问题是如何模拟ASP
读取Web.Config文件的作用?我已经尝试在
System.Configuration库中乱搞,并且无法从
中找到任何东西,快速查看对象及其方法(为了填充应用程序的ConfigurationSettings对象的
的目标)。任何建议
表示赞赏。
I''m trying to use ASP objects (basically formed and populated based on
Web.Config settings) and I want to use them in a different non-asp program
with minimal reprogramming. So, my question is how do I mock up what ASP
does to read the Web.Config file? I''ve tried messing around in the
System.Configuration library and haven''t been able to find anything from
taking a quick look at the objects and their methods (for the goal of
populating the application''s ConfigurationSettings object). Any suggestions
are appreciated.
推荐答案
这篇关于在ASP之外使用Web.config文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!