没有Global.asax文件一般的异常处理 [英] General exception handling without global.asax file

查看:133
本文介绍了没有Global.asax文件一般的异常处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有赶在Visual Studio项目所有未处理的异常的方法。我的项目没有名为全球任何文件或Global.asax中,所以我想知道是否有一些其他的方式来捕捉任何和所有未处理的异常?到目前为止,我试图把异常处理code围绕特定块,但它不会有任何效果。

I was wondering if there was a way to catch all unhandled exceptions in a visual studio project. My project does not have any files named global or global.asax so I was wondering if there was some other way to catch any and all unhandled exceptions? So far I've tried to put exception handling around specific blocks of code, but it doesn't have any effect.

推荐答案

我提到的 这里 约两个页/应用层处理

I mentioned here about both Page/Application Level handling

这篇关于没有Global.asax文件一般的异常处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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