gpt4 book ai didi

azure - 如何调试Azure应用程序上的错误500内部服务器错误?

转载 作者:行者123 更新时间:2023-12-03 04:41:59 26 4
gpt4 key购买 nike

部署应用程序后,我收到“500 内部服务器错误 - 启动应用程序时发生错误”:https://iidapp.azurewebsites.net/

我不断发现以下错误消息,但我无法在 msdn 网站上找到任何描述如何指定 SAS URL的信息

信息:该应用程序运行了很长一段时间,我不必设置 SAS URL;我想知道为什么 Azure 突然产生异常

信息2:该应用程序在我的本地计算机上完美运行

欢迎任何帮助,因为我无法通过阅读 stackoverflow 上的相关主题找到任何解决方案

2017-04-05T18:51:32
System.ApplicationException: The trace listener AzureBlobTraceListener is disabled. ---> System.InvalidOperationException: The SAS URL for the cloud storage account is not specified. Use the environment variable 'DIAGNOSTICS_AZUREBLOBCONTAINERSASURL' to define it.
at Microsoft.WindowsAzure.WebSites.Diagnostics.AzureBlobTraceListener.RefreshConfig()
--- End of inner exception stack trace ---

最佳答案

  1. W3SVC-WP 触发了错误:{应用名称}
    02000780 Observe-Analyze-Mitigate
  2. 我在eventid上发现的代码02000780意味着文件丢失
  3. 我最终发现可以通过在 web.config启用 stdoulog 来记录更多信息。阅读 When a .NET Core Azure App Service won’t start: 502.5 Process Failure
  4. 我打开调试控制台,发现找不到目录 https://{app_id}.scm.azurewebsites.net/DebugConsole

瞧!我更正了代码,应用程序已启动并运行!

关于azure - 如何调试Azure应用程序上的错误500内部服务器错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43256431/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com