如何使用 Azure 移动应用程序调试“500 内部服务器错误”?
How do I debug "500 Internal Server Error" with Azure Mobile Apps?
我正在将 Azure 移动应用程序部署到部署槽,但在 Xamarin iOS 中收到以下错误。
500 The request could not be completed (Internal Server Error)
我做了以下事情:
- 设置
<customErrors mode="Off" ></customErrors>
- 检查 Application Insights 实时指标屏幕
- 启用失败请求跟踪
- 检查事件日志(2147024891 azure runtime 初始化失败)
- 在我的 "web app" 中搜索基于 "web service" 的 DLL 和引用。我在 Application Insights 中发现了一些可疑的,其中包含单词 "ROLE"
.
<?xml version="1.0" encoding="utf-8"?>
<ApplicationInsights xmlns="http://schemas.microsoft.com/ApplicationInsights/2013/Settings">
<TelemetryInitializers>
<Add Type="Microsoft.ApplicationInsights.DependencyCollector.HttpDependenciesParsingTelemetryInitializer, Microsoft.AI.DependencyCollector" />
<Add Type="Microsoft.ApplicationInsights.WindowsServer.AzureRoleEnvironmentTelemetryInitializer, Microsoft.AI.WindowsServer" />
<Add Type="Microsoft.ApplicationInsights.WindowsServer.AzureWebAppRoleEnvironmentTelemetryInitializer, Microsoft.AI.WindowsServer" />
查看完整内容list of references here
以后测试调试
Azure 帮助页面似乎没有告诉我如何启用远程调试,这是我接下来要谷歌搜索的内容。
(在这方面可能更有帮助的帮助页面图片;)
我正在将 Azure 移动应用程序部署到部署槽,但在 Xamarin iOS 中收到以下错误。
500 The request could not be completed (Internal Server Error)
我做了以下事情:
- 设置
<customErrors mode="Off" ></customErrors>
- 检查 Application Insights 实时指标屏幕
- 启用失败请求跟踪
- 检查事件日志(2147024891 azure runtime 初始化失败)
- 在我的 "web app" 中搜索基于 "web service" 的 DLL 和引用。我在 Application Insights 中发现了一些可疑的,其中包含单词 "ROLE"
.
<?xml version="1.0" encoding="utf-8"?>
<ApplicationInsights xmlns="http://schemas.microsoft.com/ApplicationInsights/2013/Settings">
<TelemetryInitializers>
<Add Type="Microsoft.ApplicationInsights.DependencyCollector.HttpDependenciesParsingTelemetryInitializer, Microsoft.AI.DependencyCollector" />
<Add Type="Microsoft.ApplicationInsights.WindowsServer.AzureRoleEnvironmentTelemetryInitializer, Microsoft.AI.WindowsServer" />
<Add Type="Microsoft.ApplicationInsights.WindowsServer.AzureWebAppRoleEnvironmentTelemetryInitializer, Microsoft.AI.WindowsServer" />
查看完整内容list of references here
以后测试调试
Azure 帮助页面似乎没有告诉我如何启用远程调试,这是我接下来要谷歌搜索的内容。
(在这方面可能更有帮助的帮助页面图片;)