【问题标题】:Azure App Service Web App compilation errorAzure App Service Web App 编译错误
【发布时间】:2016-01-07 01:09:24
【问题描述】:

通过 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.

我该如何解决这个问题?

【问题讨论】:

  • 只有在 Azure 中托管时才会失败,还是在本地也会失败?

标签: asp.net-mvc vb.net azure azure-web-app-service


【解决方案1】:

此编译错误是由于过去上传的 .DLL 存在问题。如果您之前已通过 Web 部署上传,并且 Visual Studio 在第二次部署时未正确检测到依赖项更新,因此未部署更改后的 .DLL,则可能会发生这种情况。

更新:最好的解决方案是在通过 Web Deploy 更新网站时,选择File Publishing Options 下的Remove additional files at destination 选项

【讨论】:

  • 您的网络部署配置中有一个选项可以删除多余的文件。检查它,它会解决这个问题(假设这个答案会解决你的问题,我的经验一直在发生)
  • 是的,我第二次遇到这个问题时最终找到了这个选项,但是谢谢。
【解决方案2】:

在 Azure 上的诊断选项中启用应用程序日志记录、Web 服务器、详细错误和失败请求跟踪

https://azure.microsoft.com/en-us/documentation/articles/web-sites-enable-diagnostic-log/

FTP 记录下来,看看这是否有帮助。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-11-07
    • 1970-01-01
    • 2017-02-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多