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

时间:2018-06-12 23:02:14

标签: asp.net-mvc iis windows-server-2016 iis-10

我的网站托管在两个环境中。两种环境都具有类似的服务器配置(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. 

1 个答案:

答案 0 :(得分:0)

对我来说,服务帐户已从OS Administrator组中删除。加入管理员组后。它工作正常。