且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Azure中的Web应用程序显示ASP.NET 5错误页

更新时间:2022-11-06 16:25:02

据的这个帖子(感谢***),我应该可以通过编辑服务器的web.config获得在Azure上运行时错误(十分正确的,凯尔特人)。

According to this post (thanks Muhammad), I should be able to get the runtime error on Azure by editing the server's web.config (quite correct, Celt).

不幸的是这没有工作 - 没有详细的例外

Unfortunately this did not work - no detailed exception.

我做了一些挖了一圈,发现这些DetailedError日志:

I did some digging around and found these "DetailedError" logs:

在Azure中的Web应用程序显示ASP.NET 5错误页

这是他们装的是什么:

在Azure中的Web应用程序显示ASP.NET 5错误页

看来,试图在 D解析的favicon.ico 东西的时候可能已经走错了:\\家\\网站\\ wwwroot的\\图标。 ICO

It appears that something may have been going wrong when trying to resolve favicon.ico at D:\home\site\wwwroot\favicon.ico.

有的确是在那个位置没有图标。我纠正这一点,但还是一样的问题。事实上,我从未有过一个图标,而这个用来工作。

There indeed was no favicon at that location. I rectified this, but still the same problem. In fact, I have never had a favicon, and this used to work.

最后,我删除了整个Web应用程序的Azure中的Portal和再版...... TADA,它再次工作。