【发布时间】:2018-06-12 23:02:13
【问题描述】:
我的网站托管在两个环境中。两种环境都具有相似的服务器配置(Azure VM、Windows server 2016、IIS 10)和部署的相同版本的代码。自上个月以来,它在两台服务器上都运行良好,但在新版本发布后,它在 test02 环境服务器上出现以下错误,而在 test01 中运行良好:
> GET http://60.10.50.60/Content/bootstrap-datetimepicker.css 500 (Internal Server Error)
> 60.10.50.60/:617 GET http://60.10.50.60/Scripts/bootstrap-datetimepicker.min.js 500
> (Internal Server Error)
> 60.10.50.60/:619 GET http://60.10.50.60/Scripts/messenger/messenger.min.js 500 (Internal
> Server Error)
> 60.10.50.60/:620 GET http://60.10.50.60/Scripts/messenger/messenger-theme-future.js 500
> (Internal Server Error)
> 60.10.50.60/:621 GET http://60.10.50.60/Scripts/jquery.signalR-2.1.2.min.js 500 (Internal
> Server Error)
> 60.10.50.60/:18 GET http://60.10.50.60/Content/font-awesome/css/font-awesome.min.css 500
> (Internal Server Error)
> 60.10.50.60/:615 GET http://60.10.50.60/Scripts/moment.min.js 500 (Internal Server Error)
> 60.10.50.60/:20 GET http://60.10.50.60/Content/messenger/messenger.css 500 (Internal
> Server Error)
> 60.10.50.60/:578 GET http://60.10.50.60/Scripts/angular.min.js 500 (Internal Server Error)
> 60.10.50.60/:623 GET http://60.10.50.60/Scripts/AppScripts.min.js 500 (Internal Server Error)
> 60.10.50.60/:21 GET http://60.10.50.60/Content/messenger/messenger-theme-future.css 500
> (Internal Server Error)
> (index):624 GET http://60.10.50.60/Scripts/Controllers/HomeControllerAng.min.js 500
> (Internal Server Error)
> (index):576 GET http://60.10.50.60/fonts/glyphicons-halflings-regular.woff 500
> (Internal Server Error)
> 2(index):578 GET http://60.10.50.60/Scripts/angular.min.js 500 (Internal Server Error)
> (index):615 GET http://60.10.50.60/Scripts/moment.min.js 500 (Internal Server Error)
> (index):617 GET http://60.10.50.60/Scripts/bootstrap-datetimepicker.min.js 500
> (Internal Server Error)
> (index):619 GET http://60.10.50.60/Scripts/messenger/messenger.min.js 500 (Internal
> Server Error)
> (index):620 GET http://60.10.50.60/Scripts/messenger/messenger-theme-future.js 500
我尝试在 IE 中的服务器 (test02) 上本地访问 css/js 文件(出现上述错误),并显示以下错误,以及托管在 test01 上的网站内容在浏览器中呈现:
HTTP Error 500.0 - Internal Server Error
The page cannot be displayed because an internal server error has occurred.
Detailed Error Information:
Module: IIS Web Core
Notification : AuthenticateRequest
Handler : StaticFile
Error Code: 0x80070542
我提到了这个link,但没有帮助,也没有提到错误代码 0x80070542。
1. I checked Handler Mappings for staticFile & other handlers as well. Its same on the both the servers where its working (test01) and not working (test02).
2. Root directory also accessible from IIS from both server.
3. Tried updating overrideModeDefault to Allow in applicationHost.config file as below.
<section name="handlers" overrideModeDefault="Allow" />
4. App pool account also has same permissions on physical path.
【问题讨论】:
标签: asp.net-mvc iis windows-server-2016 iis-10