【发布时间】:2013-04-30 13:56:09
【问题描述】:
这是我的问题。我正在安装我工作的公司在 5.0.4 版 DotNetNuke 安装中开发的模块。
.dnn 清单文件有一个包含此添加的节点部分
<node path="/configuration/system.webServer/handlers"
action="update" key="name" collision="overwrite">
<add name="svc-Integrated" verb="*" path="*.svc"
type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=1111111111111111" resourceType="Unspecified"
preCondition="integratedMode"/>
</node>
DNN 应用程序的 web.config 尚未在 configuration/system.webServer/handlers 部分添加此内容,因此将其添加到 web.config。
然后在尝试加载网站时,我收到一条错误消息:
Cannot add duplicate collection entry of type 'add' with
unique key attribute 'name' set to 'svc-Integrated'
我花了一些时间寻找 svc-Integrated 的重复条目可能来自哪里,最后发现在 IIS 中查看 DNN Web 应用程序所在的网站。它有一个 Handler Mappings 部分,并且 svc-Integrated 标记位于网站中,Entry Type 为 Inherited。
我试图找出 svc-Integrated 处理程序是从哪里继承的。
编辑:我在 machine.config 和 web 上查看了 c:\windows\Microsoft.NET\Framework\v2.0.50727\CONFIG .config 文件,并且根本没有名称为“svc-Integrated”的条目。我尝试在 machine.config 和 web.config 中查看 Framework64 文件夹和 v4.* 文件夹,但没有 svc - 集成在 ANY 的这些位置中,因此我不知道 IIS 从何处获取此处理程序定义:(
【问题讨论】:
标签: asp.net asp.net-mvc iis dotnetnuke