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