【发布时间】:2010-11-30 19:28:48
【问题描述】:
这是我尝试从 web.config 获取自定义配置对象的代码:
LdapConfiguration ldapConfig = (LdapConfiguration)ConfigurationManager.GetSection("ldapConfiguration");
当那行代码运行时,我得到this error page。
Here is screenshot 表明我已包含对包含配置对象的项目的引用:
在我构建项目后,我确实在我的 bin 文件中看到了 GTCCLdap.dll 文件。
【问题讨论】:
标签: .net asp.net configuration reference web-config