Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7548291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:39:41+00:00 2026-05-30T09:39:41+00:00

We have error reporting on our website so we’re notified via e-mail whenever errors

  • 0

We have error reporting on our website so we’re notified via e-mail whenever errors occur, and this particular error occurs on a somewhat regular basis. I’d like to handle it simply because it’s annoying. The main cause of it, in our case, is from bots hitting our site and doing whatever it is they’re doing to modify the page data. I’m considering implementing the code below into the Global.asax, but I’m wondering if there’s a better way to handle it, or if there’s a reason I shouldn’t being doing this (aside from the fact that I won’t be notified of potentially legitimate errors) and just letting it error and redirect the user to our error page.

void Application_Error(object sender, EventArgs e)
{
    var exception = Server.GetLastError();

    if (exception is HttpUnhandledException && exception.InnerException.ToString().Contains("Invalid postback or callback argument."))
    {
        Server.ClearError();
        Response.Redirect(HttpContext.Current.Request.Url.AbsolutePath);
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T09:39:42+00:00Added an answer on May 30, 2026 at 9:39 am

    I wouldn’t just swallow the error because as you said, it could mask a real problem that pops up on your site. I think the better approach would be to adjust the configuration of your error reporting.
    I don’t know what reporting infrastructure you are using, but you probably don’t want an email for every error that occurs on your site (if it’s a large site that could be a serious signal to noise issue). Is there a way to filter your reporting such that “these go to the log file”, “these fatal/important ones go to email” etc….?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an error occuring frequently from our community server installation whenever the googlesitemap.ashx
We have some error reporting code that, when an unhandled exception occurs, we send
I have this error message: Msg 8134, Level 16, State 1, Line 1 Divide
I have this error that is keeping me from moving forward. I basically have
This time I have an error which I have been trying again to figure
I have this query and I have an error: images = Image.find_by_sql('PREPARE stmt FROM
I have got an error while trying to upgrade our large project to SL4.
We have a library that deals with many aspects of error reporting. I have
All - I have recently upgraded our production environment from Sql Server Reporting Services
I have deployed an SSRS 2008 R2 project into our SharePoint Integration. This worked

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.