ASP.NET显示错误信息 [英] ASP.NET Show Error Details

查看:81
本文介绍了ASP.NET显示错误信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近部署了我的ASP.NET 3.5应用程序,以我的测试服务器,新安装的Windows Server 2003标准的副本是IIS 6.0和.NET 3.5 SP1。当我查看应用程序(甚至从服务器上的Web浏览器)我得到:

I recently deployed my ASP.NET 3.5 application to my test server, a newly installed copy of Windows Server 2003 Standard on which is IIS 6.0 and .NET 3.5 SP1. When I view the application (even from a web browser on the server) I get:

中的服务器错误'/'应用。

Server Error in '/' Application.

运行时错误

说明:
  在发生应用程序错误
  服务器。当前自定义错误
  此应用程序prevent设置
  该应用程序错误的详细信息
  远程查看(为
  安全原因)。它可以,但是,
  通过在运行的浏览器中查看
  本地服务器计算机。

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

详细介绍:为了使这个细节
  特定的错误信息要查看
  在远程计算机上,请创建
   内标签
  web.config配置文件
  位于的根目录
  当前Web应用程序。这个
   那么标签应该有
  它的mode属性设置为Off。

Details: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".

我,但是,本地服务器计算机上,所以我不知道为什么我看到这个错误。我已经添加了<的customErrors模式=关/> 来我的web.config文件,但我还是不能让看到错误的详细信息。有谁知道如何解决这一问题?

I am, however, on the local server machine, so I'm not sure why I'm seeing this error. I've added <customErrors mode="Off"/> to my Web.Config file, but I still can't get see the error details. Does anyone know how to fix this?

推荐答案

原来,这是在同一个应用程序池运行不同版本的.NET的问题。在同一服务器上的其他禁用网站被设置为使用.NET 1.1的应用。显然,这是问题,因为它更改为.NET 2.0解决了这个问题。

It turned out that it was a matter of different .NET versions running on the same Application Pool. Another disabled website on the same server was set to use .NET 1.1 for its application. Apparently that was the problem as changing it to .NET 2.0 resolved the issue.

这篇关于ASP.NET显示错误信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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