【问题标题】:How do I debug "500 Internal Server Error" with Azure Mobile Apps?如何使用 Azure 移动应用调试“500 内部服务器错误”?
【发布时间】:2017-08-13 06:51:42
【问题描述】:

我正在将 Azure 移动应用部署到部署槽,并在 Xamarin iOS 中收到以下错误。

500 请求无法完成(内部服务器错误)

我做了以下事情:

  • 设置<customErrors mode="Off" ></customErrors>
  • 检查 Application Insights 实时指标屏幕
  • 启用失败的请求跟踪
  • 检查事件日志(2147024891 azure runtime 初始化失败)
  • 在我的“网络应用程序”中搜索基于“网络服务”的 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 azure-mobile-services azure-application-insights azure-web-app-service


    【解决方案1】:

    【讨论】:

    • 我将阅读整篇文章,然后找出一些方法来区分我阅读的内容与不可避免的持续更新。另外,发现了我的异常,尽管我需要找出错误在我的应用程序中“去向”的位置......它去了这里:ApplicationInsights.CreateTelemetryClient().TrackRestAPIException(correlationId, exception);
    • 请发布相关部分,而不是链接。如果链接断开,您的答案将变得毫无用处
    猜你喜欢
    • 2017-09-01
    • 1970-01-01
    • 2023-03-10
    • 2012-10-26
    • 2013-02-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多