简体   繁体   English

如何在Azure应用程序上调试错误500 Internal Server Error?

[英]how to debug error 500 Internal Server Error on an Azure App?

I got an "500 Internal Server Error - An error occurred while starting the application" after deploying my application: https://iidapp.azurewebsites.net/ 部署应用程序后,我收到“ 500 Internal Server Error-启动应用程序时发生错误”: https : //iidapp.azurewebsites.net/

I keep finding the following error message but I am unable to find out on msdn websites any information describing how I can specify the SAS URL 我一直在查找以下错误消息,但是我无法在msdn网站上找到描述我如何指定SAS URL的任何信息。

INFO: The app was working for a long period and I didn't have to set the SAS URL; 信息:该应用程序运行了很长时间,我不必设置SAS URL。 I wonder why suddenly Azure is generating exceptions 我想知道为什么Azure突然产生异常

INFO2: the app works perfectly on my local machine INFO2:该应用程序可以在我的本地计算机上完美运行

Any help is welcomed as I couldn't find any solution by reading the related topics on stackoverflow 欢迎任何帮助,因为我无法通过阅读关于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. An error was triggered by W3SVC-WP : {app name} W3SVC-WP触发了错误:{app name}
    02000780 02000780 观察分析缓解
  2. I found out on eventid that the code 02000780 meant that a file was missing 我在eventid上发现代码02000780意味着文件丢失
  3. I eventually found out that it was possible to log further information by enabling the stdoulog inside the web.config . 我最终发现,可以通过在web.config中 启用stdoulog来记录更多信息。 Read When a .NET Core Azure App Service won't start: 502.5 Process Failure 读取.NET Core Azure应用服务无法启动时:502.5进程失败
  4. I opened the debug console and found out that a directory wasn't found https://{app_id}.scm.azurewebsites.net/DebugConsole 我打开调试控制台,发现找不到目录https:// {app_id} .scm.azurewebsites.net / DebugConsole

Voilà! 瞧! I corrected the code and the app is up and running! 我更正了代码,该应用程序已启动并正在运行!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 500-天蓝色的内部服务器错误 - 500 - Internal server error in azure 如何使用Azure移动应用程序调试“ 500内部服务器错误”? - How do I debug “500 Internal Server Error” with Azure Mobile Apps? Windows Azure MVC3应用-500-内部服务器错误 - Windows Azure MVC3 app - 500 - Internal server error Azure 500内部服务器中的httphandlers错误 - httphandlers in azure 500 internal server error Azure 函数返回 500 内部服务器错误 - Azure Function returns 500 internal server error 500(内部服务器错误):Forge 部署在 Azure 上 - 500(Internal Server Error): Forge deployed on Azure 在Azure的Bottle Py模板中调试500内部错误 - Debug 500 Internal error in Bottle Py template in Azure Azure Devops 管道返回:'无法将 web package 部署到应用服务。 内部服务器错误(代码:500)' - Azure Devops Pipeline returning: 'Failed to deploy web package to App Service. Internal Server Error (CODE: 500)' Azure REST Api 500 在 virtual.network 中创建应用服务槽时出现内部服务器错误 - Azure REST Api 500 Internal Server Error when creating a app service slot in a virtual network 解决和解决Azure Web App 500内部服务器错误超时问题 - Resolve and Troubleshoot Azure web App 500 Internal Server Error Timeout Issue
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM