Jeremy Wadsworth
My Contribution to the ASP.NET Community


Welcome   
Welcome to my personal website. Here you will find blog posts related to web development as well as personal related interests. If you're here for the source code to my Personal Web Site Kit, please register and you'll receive an email when your account has been approved.


Latest Blog Entries

 Thursday, April 26, 2007


Invalid postback or callback argument    
This is a common error that frequently plagues web developers and is often hard to work around. I've come across it several times and fixed it using a variety of solutions that are usually specific to even a particular page being worked on.

Today I watched in horror as this error popped up over and over, on users screens at a training that was being given for a web application that I helped develop. I couldn't understand why since I couldn't produce the error on the live version of the application, which was using the same set of code. When I got home I reviewed the web.config and discovered that I left Debug set to True. I changed it to False, and could no longer get the Invalid Postback error to occur. That's a tough lesson to learn. In addition to the constant error popping up, the performance was very poor as a result of running in debug mode.

It's important to mention that the error was being triggered when a user would click a Menu link and something on the page was still loading.


jeremy at 8:03 PM | (6) Comments | Add a comment | Permalink





Commments
Gerard van de Ven said...

The question is whether the error is caused by the slow performance because of the debug setting, or whether it is the debug setting itself which causes both. We had the same problem on a website running on a very slow server for a while, but debug was set to false. When the server was performing better, the error went away.

Friday, April 27, 2007 8:23 PM

jeremy said...

Gerard, I wonder that myself as it's easy to reproduce the error on slow pages. It's also easy to reproduce the error on a page that's using callbacks (ajax). I've had to use javascript on some pages to disable save buttons and such, so that the user can't generate this error. I have a little more of a challenge in an app that is using the radPanelBar by Telerik.

Friday, April 27, 2007 10:42 PM

James Glenn said...

I am getting this error using the Personal Web Site that came with Visual Studio 2005. It looks like its on the Validation code running as Client Script. The website is hosted on a Shared server at GoDaddy.com. I don't have this issue on my localhost (IIS7) or on a test server (IIS6). I set debug=false with no avail. The site is http://www.biscuitbandit.com. Enter anything into the login form and click on login.

Tuesday, May 08, 2007 10:49 AM

Jeremy said...

I would suggest you contact Godaddy support. They should be able to help you. You may want to try uploading your whole site again.

Sunday, May 13, 2007 9:17 AM

David said...

Thanks for the article and ideas, very useful..

Wednesday, December 19, 2007 6:13 AM

Tiffany jewellery said...

You may want to try uploading your whole site again.

Friday, July 16, 2010 9:21 PM

  Leave a comment

Enter Your Name:
 
Enter your website
Security code from image below:  
Need Custom Controls Work or Training?
   


Join WebHost4Life.com






If you would like to help support this project, please click the button below to make a small donation.