详细的ASP.Net信息不在浏览器中显示 [英] Detailed ASP.Net info not displaying in browser

查看:80
本文介绍了详细的ASP.Net信息不在浏览器中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

团队,

我正在开发一个Web服务。在我的enw PC上进行测试时,我期待

看到我的浏览器上出现的异常。相反,我得到一个HTTP 500

内部服务器错误页面,我没有看到我的异常详细信息。正在使用的

web.config文件的设置为< customErrors mode =" Off" />。这个

应该允许我查看详细的异常信息。在另一台计算机上

- 相同的代码 - 相同的Web配置 - 显示异常详细信息。不知道我的新电脑需要设置什么

才能看到这个信息。


请指教。

非常感谢,

Tim Reynolds

Team,
I am developing a web service. In testing in on my enw PC, I am expecting to
see exceptions thrown appear on my browser. Instead I am getting an HTTP 500
Internal Server Error page and I am not seeing my exception details. The
web.config file being used has the setting <customErrors mode="Off"/>. This
should allow me to see the detailed exception info. On a different computer
- same code - same web config - the exception details display. Not sure what
else on my new computer needs set in order to see this info.

Please advise.
Much thanks,
Tim Reynolds

推荐答案




Tim Reynolds写道:


Tim Reynolds wrote:

我正在开发一个Web服务。在我的enw PC上进行测试时,我期待

看到我的浏览器上出现的异常。相反,我得到一个HTTP 500

内部服务器错误页面,我没有看到我的异常详细信息。正在使用的

web.config文件的设置为< customErrors mode =" Off" />。这个

应该允许我查看详细的异常信息。在另一台计算机上

- 相同的代码 - 相同的Web配置 - 显示异常详细信息。不确定我的新计算机上需要设置什么

才能查看此信息。
I am developing a web service. In testing in on my enw PC, I am expecting to
see exceptions thrown appear on my browser. Instead I am getting an HTTP 500
Internal Server Error page and I am not seeing my exception details. The
web.config file being used has the setting <customErrors mode="Off"/>. This
should allow me to see the detailed exception info. On a different computer
- same code - same web config - the exception details display. Not sure what
else on my new computer needs set in order to see this info.



可能是你使用IE作为浏览器而IE被配置为显示简短的HTTP错误消息而不是完整的

服务器发送的错误文档。因此,如果您使用IE,请检查您的IE

设置以禁用短HTTP错误消息。 (注意:我在这里使用了一个

德语IE版本所以设置的确切英文措辞可能会不同,上面的措辞是我尝试翻译德语

我在这里看到的设置说明。)


-


Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/


感谢Martin。


我最接近的设置是''显示友好的HTTP错误

消息'' 。我已经尝试过这个选项,虽然我确实得到了一些

异常信息(内部异常消息) - 但我没有得到所有异常

的详细信息。我有相同的项目&另一台PC上的web.config(我们称之为我的旧电脑上的
)当我在旧电脑上运行时,我看到所有异常信息 - 不是

只是内部异常消息。所以,是的,我看到显示

友好的HTTP错误消息未选中时有所不同,我没有看到所有详细的

信息,如堆栈跟踪 - 外部异常,外部

例外条款......等等......

友好的HTTP错误消息''已经检查。


因此,我猜测其他地方还有其他设置

这台PC是为了让它设置好所以我的新PC会显示异常只是像我的旧PC一样(和其他队友PC一样)。


谢谢,

Tim

" Martin Honnen"写道:
Thanks Martin.

The closest thing I have to that setting is ''Show Friendly HTTP error
messages''. I have tried this option and although I do get some of the
exception info (inner exception message)- I do not get all of the exception
details. I have identical project & web.config on another PC (we''ll call it
my old PC) and when I run on my old PC, I see ALL the exception info - not
just the inner exception message. So, yes, I see some difference when Show
Friendly HTTP Error messages is unchecked, I do not see ALL the detailed
information such as the stack trace - the outer exception, the outer
exception strack trace... etc...

Of note, on my old PC that DOES show all the exception info, this item ''Show
Friendly HTTP error messages'' is CHECKED.

Therefore, I am guessing that there are other settings somewhere else on
this PC in order to get it set up so my new PC will display exceptions just
like my old one did (and just like other teammates PC''s do).

Thanks,
Tim
"Martin Honnen" wrote:

>


Tim Reynolds写道:
>

Tim Reynolds wrote:

我正在开发一个Web服务。在我的enw PC上进行测试时,我期待

看到我的浏览器上出现的异常。相反,我得到一个HTTP 500

内部服务器错误页面,我没有看到我的异常详细信息。正在使用的

web.config文件的设置为< customErrors mode =" Off" />。这个

应该允许我查看详细的异常信息。在另一台计算机上

- 相同的代码 - 相同的Web配置 - 显示异常详细信息。不确定我的新计算机上需要设置什么

才能查看此信息。
I am developing a web service. In testing in on my enw PC, I am expecting to
see exceptions thrown appear on my browser. Instead I am getting an HTTP 500
Internal Server Error page and I am not seeing my exception details. The
web.config file being used has the setting <customErrors mode="Off"/>. This
should allow me to see the detailed exception info. On a different computer
- same code - same web config - the exception details display. Not sure what
else on my new computer needs set in order to see this info.



可能是你使用IE作为浏览器而IE被配置为显示简短的HTTP错误消息而不是完整的

服务器发送的错误文档。因此,如果您使用IE,请检查您的IE

设置以禁用短HTTP错误消息。 (注意:我在这里使用了一个

德语IE版本所以设置的确切英文措辞可能会不同,上面的措辞是我尝试翻译德语

我在这里看到的设置说明。)


-


Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/


你好蒂姆,


审核完你的帖子后,我不确定你是否正在开发一个web

service"或网站。如果你正在开发一个网络服务使用

ASP.NET,你是如何测试它的?如果您使用IE测试网站

服务,据我所知,您只能从localhost测试它,除非

您正在使用其他网站用于测试网络服务的网站。


在您的新网站上电脑,它是否报告每页上的HTTP 500错误?或者仅在抛出预期异常时报告



?°HTTP 500内部服务器错误?±是一般错误消息。要获得

更多详细信息,请:

1.打开菜单工具 - IE中的Internet选项。

2.单击高级选项卡。

3.清除复选框?°显示友好的HTTP错误消息?±。

4.单击确定关闭对话框。

5 。尝试再次访问该页面。

6.创建收到的错误消息的屏幕截图。

7.向我发送屏幕截图和事件日志在服务器上

(应用程序和系统)。


此致,

Walter Wang(wa **** @ online。 microsoft.com,删除''在线。'')

Microsoft在线社区支持


============== ====================================

通过我的帖子收到通知电子邮件?请参阅
http://msdn.microsoft .com / subscripti ... ult.aspx#notif

ications。


注意:MSDN托管新闻组支持服务是针对非紧急问题

如果社区或微软支持人员在1个工作日内做出初步回复是可以接受的。请注意,每个跟随

的响应可能需要大约2个工作日作为支持

专业人士与您合作可能需要进一步调查才能达到

最有效的分辨率。该产品不适用于需要紧急,实时或基于电话的交互或复杂的b $ b项目分析和转储分析问题的情况。这种性质的问题最好通过联系

Microsoft客户支持服务(CSS)处理
href =http://msdn.microsoft.com/subscriptions/support/default.aspx\"target =_ blank> http://msdn.microsoft.com/subscripti...t/default.aspx

======================================== ==========


此帖子按原样提供。没有保证,也没有授予任何权利。

Hi Tim,

After reviewing your post, I''m not sure whether you''re developing a "web
service" or a "web site". If you''re developing a "web service" using
ASP.NET, how are you testing it? If you''re using IE to test the web
service, as far as I know, you can only test it from localhost except
you''re using another web site to test the web service.

On your "new" pc, does it report HTTP 500 error on every page? or only
report when an expected exception is thrown?

The ?°HTTP 500 internal server error?± is the general error message. To get
more details information, please:
1. Open the menu Tools -- Internet Options in IE.
2. Click Advanced tab.
3. Clear the checkbox ?°Show friendly HTTP error messages?±.
4. Click OK to close the dialogbox.
5. Try to visit the page again.
6. Create a screen shot of the error message you received.
7. Send me the screen shot as well as the event logs on the server
(application and system).

Sincerely,
Walter Wang (wa****@online.microsoft.com, remove ''online.'')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.


这篇关于详细的ASP.Net信息不在浏览器中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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