Sam*_*ack 10 asp.net iis iis-10
我知道有类似的问题已被问到,但他们的答案并没有解决我的问题.
HTTP错误500.19 - 内部服务器错误
无法访问请求的页面,因为页面的相关配置数据无效.
详细错误信息:模块IIS Web核心通知BeginRequest处理程序尚未确定错误代码0x80070021配置错误此配置部分不能在此路径中使用.当该部分被锁定在父级别时会发生这种情况.锁定是默认情况下(overrideModeDefault ="Deny"),或由locationMode ="Deny"或遗留allowOverride ="false"的位置标记显式设置.配置文件\?\ C:\ mySite\web.config
请求的URL http:// localhost:80/mySite/login
物理路径C:\ mySite\login
登录方法尚未确定
登录用户尚未确定
配置来源:
65:
</staticContent>66:
<handlers>67:
<add name="ReportViewerWebControlHandler"
> preCondition="integratedMode" verb="*"
> path="Reserved.ReportViewerWebControl.axd"
> type="Microsoft.Reporting.WebForms.HttpHandler,
> Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a" />
Run Code Online (Sandbox Code Playgroud)
我也检查了Windows功能,看起来没问题.
我试着设置overrideModelDefault到Allow并删除WebServiceHandlerFactory从applicationhost.congif,但没有结果.
我正在使用Visual Studio 2017和IIS 10.
任何其他想法如何解决这个问题?
Ali*_*yat 22
我正在使用Windows 10注意"您必须以管理员身份登录才能打开或关闭Windows功能." 如果Windows功能为空或空白,请仔细检查以确保已启用Windows模块安装程序服务并将其设置为"自动".
Sha*_*Sha 11
对我来说,问题是web.config.
通过删除整个<rewrite>-tag解决web.config:
<system.webServer>
...
...
<rewrite>
<rules>
<rule name="http to https" enabled="true" stopProcessing="true">
<match url="(.*)"/>
<conditions>
<add input="{HTTPS}" pattern="^OFF$"/>
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" appendQueryString="true"/>
</rule>
</rules>
</rewrite>
</system.webServer>
Run Code Online (Sandbox Code Playgroud)
在web.config文件中没问题.
After installation windows, IIS does not know how to support .NET Core 2.0 website (or Core 1.0 also) by default
您必须在托管系统上安装.NET Core Windows Server Hosting软件包.
| 归档时间: |
|
| 查看次数: |
27399 次 |
| 最近记录: |