ASP.NET IIS的Web.config [内部服务器错误] [英] ASP.NET IIS Web.config [Internal Server Error]

查看:207
本文介绍了ASP.NET IIS的Web.config [内部服务器错误]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我改变了电脑/ Windows(XP - > 7),所以IIS(6 - > 7,5),并试图移动我的网站

但我不能运行该服务器我的网站。 。 。
错误:


  

    

错误说明:HTTP错误500.19 -
    内部服务器错误


  
  
  

请求的页面不存在
  因为不正确的配置
  数据这一页。


  
  

错误详细信息模块IIS Web核心
  通知的BeginRequest处理程序尚未
  确定的错误0x80070021
  配置错误此配置
  部分不能以这种方式被使用。
  发生这种情况时,截面为
  在父级别锁定。锁定是
  无论是默认设置的(overrideModeDefault
  =拒绝),或包含overrideMode =直接由标签位置安装
  拒绝或继承财产
  有的allowOverride =假。该
  配置文件\\ \\? \\ D:\\
  项目\\ WEB流量的\\ Sources \\
  web.config中的请求的URL地址
  HTTPS:/ / 192.168.0.172:443 /
  物理路径D:\\项目\\ WEB流量
  \\来源登录方法尚未
  谁已登录用户确定
  尚未确定频道


  
  

    

配置


  

 <&处理GT;
<清除NAME =WebServiceHandlerFactory集成的/>

...

我的web.config部分:

 <模块>
        <清除NAME =ScriptModule/>
        <添加名称=ScriptModulepreCondition =managedHandlerTYPE =System.Web.Handlers.ScriptModule,System.Web.Extensions程序,版本= 3.5.0.0,文化=中性公钥= 31BF3856AD364E35/>
    < /模块>    <&处理GT;
        <清除NAME =WebServiceHandlerFactory集成的/>
        <清除NAME =ScriptHandlerFactory/>
        <清除NAME =ScriptHandlerFactoryAppServices/>
        <清除NAME =ScriptResource/>
        <添加名称=ScriptHandlerFactory动词=*PATH = preCondition =integratedModeTYPE =System.Web.Script.Services.ScriptHandlerFactory,System.Web.Extensions程序,版本= 3.5* ASMX。 .0.0,文化=中性公钥= 31BF3856AD364E35/>
        <添加名称=ScriptHandlerFactoryAppServices动词=*路径=* _ AppService.axdpreCondition =integratedModeTYPE =System.Web.Script.Services.ScriptHandlerFactory,System.Web.Extensions程序,版本= 3.5.0.0,文化=中性公钥= 31BF3856AD364E35/>
        <添加名称=ScriptResource动词=GET,HEAD路径=的ScriptResource.axdpreCondition =integratedModeTYPE =System.Web.Handlers.ScriptResourceHandler,System.Web.Extensions程序,版本= 3.5 .0.0,文化=中性公钥= 31BF3856AD364E35/>
    < /处理器>

那么,什么是错的?

我的努力:
如果我做了 -

 <模块allowDefinition的=MachineToApplicationoverrideModeDefault =拒绝>
        <清除NAME =ScriptModule/>
        <添加名称=ScriptModulepreCondition =managedHandlerTYPE =System.Web.Handlers.ScriptModule,System.Web.Extensions程序,版本= 3.5.0.0,文化=中性公钥= 31BF3856AD364E35/> < /模块>
    <处理器overrideModeDefault =拒绝>
        <清除NAME =WebServiceHandlerFactory集成的/>

我有错误:
无法识别的属性overrideModeDefault

所以我不能在configSections,因为它告诉我添加它,它已经在这里存在了。

当我改变了IIS为读/写(就像图片)香港专业教育学院得到了一个新的错误:

 错误描述:
HTTP错误404.3 - 未找到
请求的页面无法因为配置扩展显示。如果页面是一个脚本,添加处理程序。如果您需要下载的文件,添加一个MIME。
错误详情
模块StaticFileModule
通知ExecuteRequestHandler
处理程序StaticFile
错误0x80070032
所请求的URL地址的https:/ / 192.168.0.172:80 / Default.aspx的
物理路径D:\\项目\\ WEB流量的\\ Sources \\ Default.aspx的
匿名登录
谁已登录用户匿名
最有可能的原因:    *也许没有比较的处理程序。默认情况下,所有的内容是由一个处理静态文件处理。
    *也许到未安装所述接入的组件。
    *相应的MIME映射未激活的网站或应用程序。警告:不要创建MIME映射用户不应将其加载的内容 - 比如,对于网页。 ASPX或文件。配置。
    *如果ASP.NET没有安装。


解决方案

在web.config和变化选中此 overrideModeDefault 拒绝允许

 < configSections>
  < sectionGroup NAME =system.webServer>
    <节名称=处理程序overrideModeDefault =拒绝/>
    <节名称=模块allowDefinition的=MachineToApplicationoverrideModeDefault =拒绝/>

您也可以从功能委派。

管理上的Web服务器级别段在IIS管理控制台

I changed PC / Windows (XP -> 7) so IIS (6 -> 7,5) and trying to move my website

But I can't run my site from this server . . . error :

Error description: Error HTTP 500.19 - Internal Server Error

The requested page is not available because of incorrect configuration data for this page.

Error Details Module IIS Web Core Notice BeginRequest Handler Not yet determined Error 0x80070021 Configuration error This configuration section can not be used in this way. This happens when the section is locked at the parent level. Locking is either by default (overrideModeDefault = "Deny"), or installed directly by the tag location with overrideMode = "Deny" or inherited property allowOverride = "false". The configuration file \ \? \ D: \ Projects \ Flow WEB \ Sources \ web.config The requested URL-address https: / / 192.168.0.172:443 / Physical Path D: \ Projects \ Flow WEB \ Sources Logon Method Not yet determined Users who have logged on yet to be determined Channel

Configuration

<handlers>   
<remove name="WebServiceHandlerFactory-Integrated" />

...

my web.config part :

    <modules>
        <remove name="ScriptModule" />
        <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    </modules>

    <handlers>
        <remove name="WebServiceHandlerFactory-Integrated" />
        <remove name="ScriptHandlerFactory" />
        <remove name="ScriptHandlerFactoryAppServices" />
        <remove name="ScriptResource" />
        <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    </handlers>

So what's wrong ?

My trying : if I make it -

        <modules allowDefinition="MachineToApplication" overrideModeDefault="Deny">
        <remove name="ScriptModule"/>
        <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></modules>
    <handlers overrideModeDefault="Deny">
        <remove name="WebServiceHandlerFactory-Integrated"/>

I've got error : Unrecognized attribute "overrideModeDefault"

so I can't add it in configSections because it tells me that It already exist here.

and when I changed IIS to Read/Write (like on picture) Ive got a new error :

    Error description:
Error HTTP 404.3 - Not Found
The requested page can not be displayed because of the configuration expansion. If the page is a script, add a handler. If you need to download the file, add a MIME.
Error Details
Module StaticFileModule
Notice ExecuteRequestHandler
Handler StaticFile
Error 0x80070032
The requested URL-address https: / / 192.168.0.172:80 / Default.aspx
Physical Path D: \ Projects \ Flow WEB \ Sources \ Default.aspx
Anonymous Logon
Users who have logged Anonymous
The most likely reasons:

    * Perhaps there is no comparison handlers. By default, all content is processed by a handler static files.
    * Perhaps the component to which the access is not installed.
    * Corresponding MIME map is not activated for the website or application. Warning: Do not create a MIME map for content that users should not load - say, for the pages. ASPX or files. Config.
    * If ASP.NET is not installed.

解决方案

Check this in the web.config and change overrideModeDefault from Deny to Allow.

<configSections>
  <sectionGroup name="system.webServer">
    <section name="handlers" overrideModeDefault="Deny" /> 
    <section name="modules" allowDefinition="MachineToApplication" overrideModeDefault="Deny" />

You can also manage sections on web server level in your IIS management console from "Feature Delegation".

这篇关于ASP.NET IIS的Web.config [内部服务器错误]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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