简体   繁体   中英

Microsoft Azure Mobile App Service Backend Response Code 500

I created a Mobile App (Android) on the Azure Portal with the C# backend language. After this I have downloaded the Visual Studio Project with the TodoItem-Example and added the Swagger Config.

In this picture you can see a request on the localhost. It works! 在此处输入图片说明

After this I published the example on azure and gets the following error:

在此处输入图片说明

There are a lot of different things that can go wrong when publishing to Azure. The most likely issue is that your database is not set up correctly. The best way to find out what's happening is to turn on streaming logs and to look at the log output.

In the Azure portal, go to Settings -> Diagnostic Logs and turn on Applicationg Logging (Filesystem) . Note that this setting turns itself off after 12 hours to minimize the effect on site performance.

To view the logs, go to Tools -> Log Stream . To learn more about logging options, see Enable diagnostics logging for web apps in Azure App Service .

For more debugging tips, see Help, my app isn't working! in the Azure Mobile Apps Wiki.

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