IIS 10 - 500(内部服务器错误)。

问题描述 投票:1回答:1

我的网站托管在两个环境中。两个环境都有类似的服务器配置(Azure虚拟机,Windows服务器2016,IIS 10)和相同版本的代码部署。 它是工作正常,因为过去的一个月在两个服务器上,但新的版本后,它给出了以下错误的测试02环境服务器上,而在测试01其工作正常。

>         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)上的本地cssjs文件(为此得到上述错误),并显示以下错误,对于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 

我参考了这个 联系 但没有帮助,也没有提到错误代码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
1个回答
0
投票

对我来说,服务帐户被从操作系统管理员组中删除。添加到管理员组后,它是工作正常。

© www.soinside.com 2019 - 2024. All rights reserved.