浏览 Azure 部署的 Web 应用程序时出现应用程序错误消息 [英] Application Error message when browsing Azure deployed web app

查看:38
本文介绍了浏览 Azure 部署的 Web 应用程序时出现应用程序错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个简单的 Web 应用(无服务器)并使用 Azure App Service VS Code 扩展部署了该 Web 应用.我选择了 Linus + Node LTS 环境.我将部署源配置到本地 Git 存储库(也尝试过远程 GitHub 存储库)并部署.部署显示成功消息.但是,当我浏览该站点时,它会抛出一条消息(3-4 分钟后),指出存在:( 应用程序错误".管理诊断链接没有显示任何错误.发生这种情况的任何原因?在哪里可以找到错误详细信息?Web 应用程序在本地主机上编译/运行良好.

I created a simple web app (serverless) and deployed the web app using Azure App Service VS Code extension. I chose Linus + Node LTS environment. I configured deployment source to a local Git repo (also tried remote GitHub repo) and deployed. The deployment shows successful message. But when I browse the site, it throws a message (after 3-4 mins) that there was an ":( Application error". The admin diagnostics link doesn't show any error. Any reason why this could be happening? Where can I find error details? The web app compiles/runs fine on the local host.

推荐答案

启用日志流,然后你就能找出问题所在:

Enable Log Streamming, then you'll be able to figure out what the problem is:

https://docs.microsoft.com/en-us/azure/app-service/troubleshoot-diagnostic-logs

作为另一种选择,您还可以使用 Application Insights 检测您的应用程序:

As another option, you can also instrument your application with Application Insights:

https://docs.microsoft.com/en-us/azure/azure-monitor/app/nodejs

这篇关于浏览 Azure 部署的 Web 应用程序时出现应用程序错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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