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

时间:2017-04-06 13:19:38

标签: azure asp.net-core azure-storage azure-storage-blobs

我收到了一个" 500内部服务器错误 - 启动应用程序时发生错误"部署我的应用程序后:https://iidapp.azurewebsites.net/

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

信息:应用程序工作了很长时间,我没有设置SAS URL;我想知道为什么突然Azure会产生异常

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

欢迎任何帮助,因为我无法通过阅读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 个答案:

答案 0 :(得分:-1)

  1. W3SVC-WP触发错误:{app name}
    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
  5. 瞧!我更正了代码,应用程序启动并运行了!