如何解决.NET core azure appservice 500错误 [英] How to resolve .NET core azure appservice 500 error

查看:132
本文介绍了如何解决.NET core azure appservice 500错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Azure Appservice中发布了一个基本的.net核心应用程序。我跟着很多文章成功了。我甚至在visual studio中为已发布的应用程序附加了远程调试器。但调试器也没有达到启动类,App只返回500错误,并表示当前无法处理请求。



应用程序在本地工作正常,我也在IIS中托管,在Intranet中工作正常!



请告知在这种情况下可能出现的错误。



我尝试过:



我在azure app服务中启用了调试模式,在Visual Studio中为已发布的应用程序启用了附加的调试器。但是,当触发URL时,甚至启动类都没有命中。

I have published a basic .net core app in Azure Appservice. I followed many articles and did it successfully. I even attached remote debugger for the published app in visual studio. But the debugger is not hitting the startup class also, App just simply returns 500 error and says currently unable to handle requests.

Application is working fine locally and I have also hosted it in IIS, In Intranet it's working fine!

Please advise what could be the fault in this case.

What I have tried:

I enabled debugging mode in azure app service and attached debugger in visual studio for the published app. But, not even startup class is hitting when URL is triggered.

推荐答案

需要调试该过程,您可以使用生产测试来执行此操作,或者您可以甚至尝试将Visual Studio连接到实时环境并对应用程序进行实时测试。通过这种方式,您将了解环境中遗漏的内容;可能缺少配置设置或无法访问的资源。



使用Microsoft Azure进行生产测试 [ ^ ]

使用Visual Studio对Azure App Service中的Web应用程序进行故障排除Microsoft Docs [ ^ ]
That process needs to be debugged, you can use the Production Testing to do that, or you can even try to connect the Visual Studio to the live environment and do a live testing of the application. That way you will understand what is being missed on the environment; perhaps a missing configuration setting, or unaccessible resource.

Testing in Production with Microsoft Azure[^]
Troubleshoot a web app in Azure App Service using Visual Studio | Microsoft Docs[^]


这篇关于如何解决.NET core azure appservice 500错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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