【发布时间】:2011-01-09 10:41:01
【问题描述】:
我将 PC / Windows (XP -> 7) 更改为 IIS (6 -> 7,5) 并尝试移动我的网站
但我无法从这台服务器运行我的网站。 . . 错误:
错误描述:错误 HTTP 500.19 - 内部服务器错误
请求的页面不可用 因为配置不正确 此页面的数据。
错误详细信息模块 IIS Web Core 注意 BeginRequest Handler Not yet 确定错误 0x80070021 配置错误 此配置 部分不能以这种方式使用。 这发生在该部分是 锁定在父级。锁定是 默认情况下(overrideModeDefault = "Deny"),或者直接通过标签位置安装 overrideMode = “拒绝”或继承财产 允许覆盖 = “假”。这 配置文件\ \? \ D:\ 项目 \ Flow WEB \ Sources \ web.config 请求的 URL 地址 https://192.168.0.172:443/ 物理路径 D:\Projects\Flow WEB \ 来源 登录方法 尚未 确定已登录的用户 待定频道
配置
<handlers>
<remove name="WebServiceHandlerFactory-Integrated" />
...
我的 web.config 部分:
<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>
那怎么了?
我的尝试: 如果我成功了-
<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"/>
我有错误: 无法识别的属性“overrideModeDefault”
所以我不能在 configSections 中添加它,因为它告诉我它已经存在在这里。
当我将 IIS 更改为读/写时(如图所示),我遇到了一个新错误:
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.
【问题讨论】:
-
解决方案:我遇到了类似的问题,最后这个帖子帮助了我,虽然解决方案很简单。stackoverflow.com/questions/25821187/…
标签: asp.net iis web-config