IIS 10 - 500 (внутренняя ошибка сервера) - PullRequest
0 голосов
/ 13 июня 2018

Мой сайт размещен на двух средах.Обе среды имеют одинаковую конфигурацию сервера (виртуальная машина Azure, 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

Я пытался получить доступ к файлам css / js (длякоторая выдает ошибку выше) локально на сервере (test02) в IE и показывает ошибку ниже и для веб-сайта, размещенного на контенте 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. 
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...