In my experience, this error usually causes a double click on the button on the button that causes the postback. The second postback request cancels the first. Viewing the status of the first request is presented only partially, therefore it is invalid, but the error cannot be sent to the browser because it is disabled, which causes a top-level error. This can be a big problem if a user doing something twice causes problems. Otherwise, these errors can simply be filtered. Here is a good example of filtering similar errors in ELMAH: fooobar.com/questions/571039 / ...
If you are using ASP.NET WebForms, here is the code to disable the trigger control during postback: http://disturbedbuddha.wordpress.com/2007/12/10/disabling-a-trigger-control-during-asynchronous-postback /
Remember that if you disable HTML <input type = "submit">, it is excluded from your form variables, so your server side Click event does not fire. Changing it to <input type = "button"> fixes this. In WebForms, this will be <asp: Button UseSubmitBehavior = "False" />.
The above works with AJAX WebForms pages, but there is also a bit of jQuery that I came up with for other pages.
$(function () { $("a[href^='javascript']").click(function (event) { if (event.target.disabled) return false; event.target.disabled = true; setTimeout(function () {event.target.disabled = false;}, 250); }); });
source share