Microsoft Azure应用-错误500内部错误 [英] Microsoft Azure App - Error 500 internal error

查看:79
本文介绍了Microsoft Azure应用-错误500内部错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我有一个带有SQL数据库的Azure移动应用程序.该应用程序自2015年开始运行,没有任何问题.

I have an azure mobile app with a SQL database. The app is running since 2015 without any problem.

从昨天开始,如果我尝试在数据库中添加新的简单表,则该应用程序将无法再运行,并且尝试访问该应用程序的用户会收到通用错误"500内部错误".

Since yesterday, If I try to add a new simple table in the database, the app doesnt work anymore and users trying to access it get a generic error "500 internal error". 

如果我删除新表,一切将再次开始正常工作.

Things start to work properly again if I delete the new table.

有人知道如何解决此问题吗?

anyone has any idea how to fix this ?

谢谢您的帮助


推荐答案

你好,

Hello,

Have you enabled diagnostics logging? It can really help determine what is the cause of the issue.

https://docs.microsoft.com/en-us/azure/app-service/web-sites-enable-diagnostic-log

对于C#Mobile App后端,您可以在Startup.MobileApp.cs文件的ConfigureMobileApp方法中添加以下代码,以包括错误详细信息并返回到客户端.

https://docs.microsoft.com/en-us/azure/app-service/web-sites-enable-diagnostic-log

For C# Mobile App backend, you could add the following code in the ConfigureMobileApp method of your Startup.MobileApp.cs file for including error details and return to your client side.


config.IncludeErrorDetailPolicy = IncludeErrorDetailPolicy.Always;

Hope this helps.


Regards,

Alberto Morillo
SQLCoffee.com


这篇关于Microsoft Azure应用-错误500内部错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆