如何使用Asp.net捕获错误 [英] How Catch The Error using Asp.net

查看:58
本文介绍了如何使用Asp.net捕获错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Web应用程序

应用程序成功运行
来自
visual Studio 2010本地SQL数据库
visual Studio 2010远程SQL数据库
IIS和远程SQL数据库
但是,每当在FTP上上传文件时,都会显示运行时错误
和应用程序从网站开始并使用远程SQL数据库

还使用Global.asax文件来捕获错误,它也无法正常工作
通常显示为运行时错误"

还使用了Web.config文件
解决方案是什么

I am Using a web Application

The Application is successfully Running
From
visual Studio 2010 local SQL Database
visual Studio 2010 remote SQL Database
IIS and Remote SQL Database
But Showing Runtime error whenever uploading the file on FTP
and Application starts From website and using Remote Sql database

Also used Global.asax file to catch the error Its also not Working
as usal "Run Time Error" shown

Also used Web.config file
What Is the Solution

推荐答案

您没有提供很多有助于我们提供解决方案的详细信息.确保您具有customErrors = off并已在某些日志记录中使用了异常处理.

http://msdn.microsoft.com/en-us/library/h0hfz6fc.aspx [ ^ ]
You haven''t given a lot of details which would help us to give a solution. Make sure you have customErrors = off and have used Exception handling with some logging.

http://msdn.microsoft.com/en-us/library/h0hfz6fc.aspx[^]


这篇关于如何使用Asp.net捕获错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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