[英]Azure App Service Web App compilation error
通過Azure Web部署成功發布我的應用程序后,我在打開網站時遇到此錯誤:
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request.
Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: The compiler failed with error code -532462766.
我該如何解決這個問題?
此編譯錯誤是由於.DLL過去上傳的問題。 如果您之前已使用Web部署上載,並且Visual Studio未在第二次部署中正確檢測到依賴關系更新,則可能會發生這種情況,因此不會部署更改的.DLL。
更新:最佳解決方案是通過Web Deploy更新網站時,選擇“ File Publishing Options
下的“ Remove additional files at destination
File Publishing Options
在Azure上的診斷選項中啟用應用程序日志記錄,Web服務器,詳細錯誤和失敗的請求跟蹤
https://azure.microsoft.com/en-us/documentation/articles/web-sites-enable-diagnostic-log/
將日志FTP下來,看看是否有幫助。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.