ASP.NET中的错误处理 [英] Error Handling in ASP.NET

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

问题描述

大家好,
我是ASP.NET的新手,我正在通过C#使用asp.net中的错误处理技术.当我运行aspx页面而不是错误消息时,我的浏览器打开了QWOARD.com网站,但我不知道如何避免它,请帮助我获取错误页面

问候,
现在,由于您尚未共享任何内容(代码或配置),因此,我们只能说是否尚未配置或定向您的页面进入如果您使用"QWOARD.com",则可能是导致该问题的某些病毒或恶意软件问题.

通常,要进入错误页面,您可以在Web.Config文件中定义一些固定的错误代码以了解如何处理它们(重定向到特定页面).对于其余未知的突然错误,您可以捕获所有这些错误并通过配置文件或直接重定向直接定向到特定页面.


Hi Everyone,
I am new to ASP.NET, I am working in Error handling technique in asp.net through C#. While I am running the aspx page instead of error message my browser open a QWOARD.com website, I dont know how to avoid it, Please help me to get the error page

Regards,
Komathy

解决方案

Now, since you have not shared anything (code or configuration), all we can say is if you have not configured or directed your page to land on ''QWOARD.com'' then probably you have some virus or maleware issue that is leading to that side.

In general, to get to error page, you can define few fixed error codes in Web.Config file on how to handle them (redirect to specific page). For rest of the unknown sudden errors, you can catch all of them and direct to specific page either through config file or direct redirect.


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

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