如何解决Azure Web应用程序上的错误500? [英] How to resolve error 500 on Azure web app?

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

问题描述

我所拥有的:

  • VS2015U2
  • ASP.NET 5 MVC 6网站
  • 部署到Azure Web App
  • 该网站在本地工作
  • 部署到Azure时出现内部服务器错误(500)
  • 我无法附加调试器,因为它们将最新版本弄乱了(也手动尝试
  • VS2015U2
  • ASP.NET 5 MVC 6 website
  • Deployed to Azure Web App
  • The site works locally
  • When I deploy to Azure I get internal server error (500)
  • I'm unable to Attach a debugger since they messed up something with the latest versions (tried manually too https://azure.microsoft.com/en-us/blog/introduction-to-remote-debugging-on-azure-web-sites/)
  • I have app.UseDeveloperExceptionPage(); but I guess the site is failing during configuration so it doesn't display any other information.

那么如何解决这个问题?我需要查看.net异常,但是我不知道该怎么做.:)

So how to resolve this? I need to see the .net exception but I have no idea how to do that. :)

推荐答案

尝试添加应用洞察.您应该在启动应用程序时看到错误.

Try adding Application Insights to the app. You should see errors on startup of your application.

我还将查看您的启动代码,以查看您是否在配置或app.start期间写入磁盘.如果您以任何身份使用AAD,则可能是这种情况.

I would also take a look at your startup code to see if you are writing to disk anywhere during configuration or app.start. This might be the case if you are using AAD in any capacity.

您还可以通过定位 https://sitename.scm.azurewebsites.net 来打开KUDU控制台.>.您将能够在调试控制台中导航,以查看来自IIS的RAW日志.这可能会给情况带来一些启示.有关更多信息,请参见 KUDU .

You can also hit up the KUDU console by targetting https://sitename.scm.azurewebsites.net . You will be able to navigate in the debugging console to see the RAW logs from IIS. That might shed some light into the situation. See KUDU for more info.

这篇关于如何解决Azure Web应用程序上的错误500?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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