Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/31.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 如何找出在IIS中从何处继承处理程序映射_Asp.net_Asp.net Mvc_Iis_Dotnetnuke - Fatal编程技术网

Asp.net 如何找出在IIS中从何处继承处理程序映射

Asp.net 如何找出在IIS中从何处继承处理程序映射,asp.net,asp.net-mvc,iis,dotnetnuke,Asp.net,Asp.net Mvc,Iis,Dotnetnuke,这是我的问题。我正在安装一个模块,我所在的公司在5.0.4版DotNetNuke安装中开发了该模块 .dnn清单文件有一个包含此添加的节点部分 <node path="/configuration/system.webServer/handlers" action="update" key="name" collision="overwrite"> <add name="svc-Integrated" verb="*" path="*.svc" ty

这是我的问题。我正在安装一个模块,我所在的公司在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>
我花了一些时间寻找svc Integrated的这个重复条目可能来自何处,最后在dnnweb应用程序所在的网站的IIS中找到了答案。它有一个用于处理程序映射的部分,svc集成标记位于web站点的该部分,条目类型为继承的

我试图找出svc集成处理程序从何处继承


编辑:我在machine.CONFIG和web.CONFIG文件中查看了c:\windows\Microsoft.NET\Framework\v2.0.50727\CONFIG,没有任何条目显示名称为“svc Integrated”。我尝试在machine.config和web.config中查找Framework64文件夹和v4.*文件夹,但这些位置中的任何位置都没有集成svc,因此我丝毫不知道IIS从何处获取此处理程序定义:(

当处理程序具有继承的条目类型时,您可以在Internet信息服务(IIS)左侧的“连接”面板中向上一级查找继承的位置然后双击Server Components组中的处理程序映射。在该级别上查找同一个处理程序,并查看它是从另一个级别继承的,还是该级别的本地处理程序

我发现IIS7中机器的处理程序映射来自
“C:\Windows\System32\inetsrv\config\applicationHost.config”

在technet.microsoft.com上,帮助我找到本地条目所在级别的配置文件,并解释了配置继承级别

Machine.config。此文件位于%windir%\Microsoft.NET\Framework\Framework\u version\config中

.NET Framework的根Web.config。此文件位于%windir%\Microsoft.NET\Framework\Framework\u version\config中

ApplicationHost.config。此文件位于%windir%\system32\inetsrv\config中

在那里我找到了我试图找到的svc集成配置条目

最后,我右键单击应用程序处理程序映射中的svc集成处理程序映射,然后单击“删除”。这修复了应用程序与尝试覆盖处理程序映射之间的冲突

Cannot add duplicate collection entry of type 'add' with 
    unique key attribute 'name' set to 'svc-Integrated'