首页 新闻 会员 周边

程序运行错误如何解决

0
悬赏园豆:10 [待解决问题]
<h2><em>Could not find section 'castle' in the configuration file associated with this domain.</em> </h2> <p><span style="font-family: Arial, Helvetica, Geneva, SunSans-Regular, sans-serif;"><strong>说明: </strong>执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 <br /><br /><strong>异常详细信息: </strong>System.Configuration.ConfigurationErrorsException: Could not find section 'castle' in the configuration file associated with this domain.<br /><br /><strong>源错误:</strong> <br /><br /></span></p> <table width="100%" bgcolor="#ffffcc"> <tbody> <tr> <td><code> <pre>行 23: ConditionCacheHelper.Merge(ViewState,ref ht);行 24: <span style="color: #ff0000;">行 25: IUserDao userDao = IoCContainer.Get&lt;IUserDao&gt;();</span>行 26: anp.RecordCount = userDao.SelectCount(ht);</pre> </code></td> </tr> </tbody> </table>
whbchrish的主页 whbchrish | 初学一级 | 园豆:159
提问于:2011-02-11 17:03
< >
分享
所有回答(2)
0

您好,应该是您用的Ioc框架没有做正确的配置,因此无法取到IUserDao的具体实现类,建议查看您正在使用的Ioc容器的sdk。

Jiyuan | 园豆:253 (菜鸟二级) | 2011-02-11 20:45
0

查配置文件有没有

ection 'castle'

huoqiang | 园豆:145 (初学一级) | 2011-02-12 09:52
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册