我有一个由web gui前端和web api后端组成的解决方案。两者都使用Azure AD进行身份验证,前者将令牌传递给后者。
这在localhost和OnPrem服务器上都可以正常工作,但是当我将发布版推送到Azure时,当GUI尝试使用API时,我收到500内部服务器错误。
目前,我无法获得任何进一步的错误细节。
我知道这有点模糊,但我对整个Azure平台都不熟悉,并且不确定如何进一步诊断问题。
非常感谢人们给予的任何帮助或指示。
干杯
答案 0 :(得分:0)
I know this is a little vague, but I am pretty new to the whole Azure platform and am unsure how to diagnose the issue further.
Per my understanding, you could follow the steps below to troubleshoot this issue:
For .NET web application, you could add customErrors
flag in the Web.config file and set the value to On
or RemoteOnly
to see the detailed error message. Also, you could enable diagnostics logging for web apps to retrieve more details about the error message. Or you could just leverage Remote debugging web apps for a simple way to locate the specific issue. For more details, you could follow this official tutorial about troubleshooting azure web apps.
For .NET Core web application, you could refer to this similar issue. Additionally, for php, you could refer to nfo About PHP Fatal Error and Error Log on Azure Website and Change the built-in PHP configurations to troubleshoot this issue.