2017-08-08 168 views
0

我有一個ASP.NET Core(.NET Framework)Web應用程序,帶有一些控制器,其中一個稱爲「維護」。調試時,我可以成功瀏覽所有控制器。當我部署到Azure中我的Web應用程序,我無法瀏覽到/維護路線下的任何東西 - 我得到以下錯誤:Azure「〜/ maintenance」路由失敗

The page cannot be displayed because an internal server error has occurred. 

我試圖重新命名控制器和視圖目錄比「維護其他任何'它工作正常。我試圖從網絡服務器上刪除所有文件並重新發布,但沒有任何區別。

「/ maintenance」是Azure下的預留路線嗎?

回答

2

Is "/maintenance" a reserved route under Azure?

不,我只是創建了一個簡單的ASP.NET Web應用程序並將其發佈到我的Azure的Web應用程序。我可以查看我的網絡應用的「維護」路徑。請啓用應用程序日誌並查看錯誤消息或remote debug your application以找出根本原因。

enter image description here

+1

感謝您的檢查。我剛剛發現有人創建了一個名爲maintenance的虛擬目錄... – Alyce