Click here to Skip to main content
14,877,073 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Everyone,
I am new to ASP.NET, I am working in Error handling technique in through C#. While I am running the aspx page instead of error message my browser open a website, I dont know how to avoid it, Please help me to get the error page

[no name] 15-Sep-12 14:01pm
And what is it exactly that you would want someone to do? We cannot see your code, your project, your hard drive or read your mind.

1 solution

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 '' 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.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900