【发布时间】:2011-02-05 09:45:32
【问题描述】:
当我将 Cuyahoga CMS 发布到 localhost 时出现此错误。
我能做什么?我对“城堡”或“城堡.温莎”一无所知。
【问题讨论】:
标签: c# .net asp.net iis web-config
当我将 Cuyahoga CMS 发布到 localhost 时出现此错误。
我能做什么?我对“城堡”或“城堡.温莎”一无所知。
【问题讨论】:
标签: c# .net asp.net iis web-config
将您的web.config 与 Cuyahoga CMS 中的web.config 进行比较。您的定义缺少项目所依赖的 Castle Windsor IoC 的一些配置部分。喜欢:
<configuration>
<configSections>
<section name="castle" type="Castle.Windsor.Configuration.AppDomain.CastleSectionHandler, Castle.Windsor" />
</configSections>
</configuration>
【讨论】:
参考This Answer,需要补充:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="castle" type="Castle.Windsor.Configuration.AppDomain.CastleSectionHandler,Castle.Windsor" />
</configSections>
<castle>
<components>
</components>
</castle>
</configuration>
如果只添加<section name="castle"...,我仍然会出错,我添加<castle>...</castle>然后错误解决。
【讨论】:
这是您的项目所依赖的程序集(它是一个 IoC 容器,但这无关紧要),它正在寻找您的 web.config 文件中缺少的配置部分。
您需要正确配置它才能消除错误。
【讨论】: