如何获得Azure上的网站时出现错误信息 [英] How to get error details on Azure Web site

查看:169
本文介绍了如何获得Azure上的网站时出现错误信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的Azure。是否有人知道如何在网站上获得详细的错误信息部署到Azure的网站?

I'm new to Azure. Does anybody know how get detailed error message on website deployed to Azure web?

我添加 SimpleMembership 网​​站,现在注册和登录(岗位)都出现了

I added SimpleMembership to website and now Registration and Login (Post) are showing

很抱歉,在处理您的请求时出错。

我连接到DB我家的电脑(带连接没有问题)上。

I'm connecting to DB on my home computer (no problem with connection).

LogFiles文件文件夹中有一些文件,但我不知道如何使用这些信息。我希望我可以在Azure上得到YellowScreen ...

LogFiles folder on azure ftp server has some files but I don't see how to use this information. I wish I can get YellowScreen on azure...

推荐答案

您有两种选择:

首先,你可以在你的web配置关闭自定义错误。这是快速和肮脏的方法,但它至少会得到你正在寻找的信息。只是一定要打开自定义错误回来时,你做了。 注意:此方法将显示您的堆栈跟踪到整个世界

First, you can turn off custom errors in your web config. This is the quick-and-dirty approach but it will at least get you the information you are looking for. Just be sure to turn custom errors back on when you are done. NOTE: This method will display your stacktrace to the entire world.

<configuration>
  <system.web>
    <customErrors mode="Off" />
  </system.web>
</configuration>

第二,你可以远程桌面到您的部署机器,进入IIS管理器,浏览到您的网站。一旦你在那里,重现错误,你会得到死亡的黄色画面,你正在寻找。对于这个工作,你将不得不启用详细错误

这篇关于如何获得Azure上的网站时出现错误信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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