HTTP错误500.19和错误code:0x80070021 [英] HTTP Error 500.19 and error code : 0x80070021

查看:1565
本文介绍了HTTP错误500.19和错误code:0x80070021的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我由Visual Studio有简单的WebAPI构建2013.it工作很好,当我从VS13运行它,但是当我在本地IIS复制项目它给我下面的错误


  

HTTP错误500.19 - 内部服务器错误请求的页面不能
  访问,因为该页的相关配置数据
  无效的。


详细错误信息:

模块 IIS Web核心

通知的BeginRequest

处理程序尚未确定

错误code 0x80070021

配置错误这部分配置无法在此路径使用。当部分在一父级别锁定发生这种情况。锁定是默认设置的(overrideModeDefault =拒绝),或明确包含overrideMode位置标记=拒绝或旧有的allowOverride设置=假。

配置文件 \\ \\ C:\\的Inetpub \\ wwwroot的\\ APITeslin \\ web.config中


  

配置源:


  36:其中,system.webServer>
37:或其可处理>
38:<清除NAME =ExtensionlessUrlHandler - 集成 - 4.0/>

PLZ帮助我。
谢谢


解决方案

得到了precisely同样的错误,并来到了这个问题。由于@SpaceBison在评论中提到的,这个答案说明了解决方案 - http://stackoverflow.com/a/12867753/404099 。我发现为时已晚,它错过了一些步骤。这是对我工作:

Windows Server 2012中,IIS 8.5 。应适用于其他版本了。


  • 转到服务器管理器,单击添加角色和功能

  • 在角色部分中选择:Web服务器

    • 在安全小节选择一切(我排除了消化,IP限制,因为我们没有使用这些URL授权)

    • 在应用程序开发选择.NET扩展性4.5,ASP> NET 4.5,这两个ISAPI项


  • 在功能部分中选择:.NET 3.5,.NET 4.5,ASP.NET 4.5

  • 在Web服务部选择:Web服务器(全部),管理工具(IIS管理控制台和管理服务),Windows身份验证 - 如果你正在使用它的任何

I have simple webapi build by Visual studio 2013.it work good when i run it from VS13 but when i copy the project in local IIS it give me following error

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

Detailed Error Information:

Module IIS Web Core

Notification BeginRequest

Handler Not yet determined

Error Code 0x80070021

Config Error This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".

Config File \?\C:\inetpub\wwwroot\APITeslin\web.config

Config Source:

36:   <system.webServer>  
37:     <handlers>  
38:       <remove name="ExtensionlessUrlHandler-Integrated-4.0" />

Plz help me. Thanks

解决方案

Got precisely the same error and came to this question. As @SpaceBison mentioned in comments, this answer describes the solution - http://stackoverflow.com/a/12867753/404099. I spotted it too late and it misses some steps. This is what worked for me:

Windows Server 2012, IIS 8.5. Should work for other versions too.

  • Go to server manager, click add roles and features
  • In the roles section choose: Web Server
    • Under Security sub-section choose everything (I excluded digest, IP restrictions and URL authorization as we don't use them)
    • Under Application Development choose .NET Extensibility 4.5, ASP>NET 4.5, both ISAPI entries
  • In the features section choose: NET 3.5, .NET 4.5, ASP.NET 4.5
  • In the web server section choose: Web Server (all), Management Tools (IIS Management Console and Management Service), Windows Authentication - if you are using any of it

这篇关于HTTP错误500.19和错误code:0x80070021的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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