简体   繁体   中英

How do I debug “500 Internal Server Error” with Azure Mobile Apps?

I am deploying Azure Mobile Apps to a deployment slot, and am getting the error below within Xamarin iOS.

500 The request could not be completed (Internal Server Error)

I have done the following:

  • Set <customErrors mode="Off" ></customErrors>
  • Inspect Application Insights Live Metrics Screen
  • Enabled failed request tracing
  • Inspect the event logs (2147024891 azure runtime failed to initialize)
  • Search for "web service" based DLLs and references in my "web app". I found some suspicious ones in Application Insights that contain the word "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" />

View the full list of references here

Future testing and debugging

The Azure help page didn't seem to tell me how to enable remote debugging, which is the next thing I'm googling.

(image of the help page that could be more helpful in this regard ;) 在此处输入图片说明

我正在ZUMO本书中为此写一章: https ://adrianhall.github.io/develop-mobile-apps-with-csharp-and-azure/chapter8/developing/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM