IIS 7 asp.net 4 - 不需要的继承 [英] IIS 7 asp.net 4 - unwanted inheritance

查看:64
本文介绍了IIS 7 asp.net 4 - 不需要的继承的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在管理IIS服务器方面,我并不出色。

我需要在现有的IIS 7站点上安装一个新的.net 4应用程序。



我成功完成了开发和测试的安装服务器;但是我真的很难受。



使用IIS内容视图浏览到一个简单的页面 - 我可以检测到一条错误消息,显示其默认的继承Web配置现场。该错误消息表明它们是Web配置中的重复条目。



HTTP错误500.19 - 内部服务器错误

无法访问请求的页面,因为页面的相关配置数据无效。






重复条目IS在默认网站本身 - 但默认网站运作愉快吗?



错误信息引用此父默认网站配置块



I am not fantastic when it comes to managing the IIS servers.
I need to install a new .net 4 app on an existing IIS 7 site.

I successfully completed an installation on development and test server; but am stumped on the real thing.

Using IIS content view to browse to a simple page - i can detect an error message that reveals its inheriting web config from the default site. The error message indicates that their are duplicate entries in the web config.

HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.



The duplicate entry IS within the default site itself - yet the default site functioning happily?

The error message is referencing this block of "parent" default site config

<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
  12:         <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
  13:         <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">





在父默认站点内 - 我看到

唯一可能的副本在system.web / httphandlers中



Within the parent default site - I see
the only potential duplicate is within system.web/httphandlers

<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />





和系统webserver / httphandlers



and system webserver /httphandlers

<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />







到我自己的配置我试图添加




to my own config I have attempted to add

</clear>

到system.web httphandlers和system.webserver处理程序

接下来我试图删除我自己的配置中的重复行

两次尝试 - 做不要覆盖父母的副本

其他任何想法?

谢谢

Lisa

to system.web httphandlers and to system.webserver handlers
Next I tried to "remove" the duplicate line within my own config
Both attempts - do not override the duplicate in the parent
Any other ideas?
Thanks
Lisa

推荐答案

回答类似的问题

HTTP错误500.19 - 内部服务器错误 [ ^ ]
Similar question with answer
HTTP Error 500.19 - Internal Server Error[^]


感谢您的解决方案。



在这种情况下 - 我相信必须添加项目到Web服务器默认站点以支持MVC - 不再需要它?



我已经能够从默认站点删除有问题的重复行而不会导致它遭受。



新的子网站能够正常运行而不会拒绝它最初没有声明或需要的部分的继承。
Thank you for your solutions.

In this case - I believe items must have been added to the web server default site to support MVC - that is no longer needed?

I have been able to remove the offending duplicate line from the default site without causing it to suffer.

The new subsite is able to function without rejecting inheritance of sections it originally didnt declare or need.


这篇关于IIS 7 asp.net 4 - 不需要的继承的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆