'WebForm_PostBackOptions' is undefined error, ASP.NET 2.0

Recently one of our customers had an issue when migrating from ASP.NET 1.1 to ASP.NET 2.0.  The issue came up particularly in the deployment server where any page that had validations raised the error ‘Webform_PostBackOptions’ is undefined.

If you had worked with ASP.NET 1.1 you would recollect there was an aspnet_client folder that contains all the scripts that help in client side validation as well as raising the postback events.

In ASP.NET 2.0, the “WebResource.axd” file is the handler that generates all the client side scripts which were earlier processed by the aspnet_client folder.

Coming back to this particular customer scenario, they were running URL Scan utility on their server http://learn.iis.net/page.aspx/473/using-urlscan 

URL Scan is an useful free utility that can be installed on servers that allows you to restrict the file extensions served by the IIS.  This way, potentially harmful requests can be denied and thereby injection attacks avoided.

However, the WebResource.axd handler had to be manually added as an extension to be allowed and thereafter this error went off.

There are many more causes of this particular error and I found that it has been discussed enough in forums.  Here below is one of them for your reference

http://www.eggheadcafe.com/tutorials/aspnet/03cedfc8-e623-4fee-81d8-04663b71b675/aspnet-11-to-aspnet-2.aspx

 

Cheers !!!

posted @ Wednesday, January 07, 2009 5:59 PM

Print

Comments on this entry:

# re: 'WebForm_PostBackOptions' is undefined error, ASP.NET 2.0

Left by Vivek Rastogi at 1/9/2009 9:45 PM
Gravatar
how can compile ASP.NET software

# re: 'WebForm_PostBackOptions' is undefined error, ASP.NET 2.0

Left by James McDonagh at 4/9/2009 2:27 PM
Gravatar
Hi I am having the WebForm_PostBackOptions' is undefined error, ASP.NET 2.0.

How my problem is

I have not migrated from .net 1.X.
Compression is not running on the IIS server
axd mapping are set
check when file exists box is not ticked.
I am not using the Global...

Can you help please with any other suggestions!!!!!!

# re: 'WebForm_PostBackOptions' is undefined error, ASP.NET 2.0

Left by gc at 5/8/2009 5:18 PM
Gravatar
just try iisreset

# re: 'WebForm_PostBackOptions' is undefined error, ASP.NET 2.0

Left by Diego at 5/22/2009 8:35 PM
Gravatar
I had this problem when it was running on a VM it was because of the date/ time on the VM was incorrect.
Put the day of Today, and Works!!!

# re: 'WebForm_PostBackOptions' is undefined error, ASP.NET 2.0

Left by Laura at 8/1/2009 7:29 PM
Gravatar
I was getting this error in a load balanced production environment, but once the network admin turned on sticky sessions, all the errors went away. I assume it was trying to load the .axd file from the other web server and perhaps that caused a security problem which didn't allow the file to load. Not sure but just thought I'd share what fixed it for me.

# re: 'WebForm_PostBackOptions' is undefined error, ASP.NET 2.0

Left by Todd Byers at 11/18/2009 9:20 AM
Gravatar
Ok. I found a fix for this problem in my case. The problem occurred when I upgraded an asp.net / vb.net application from VS 2003 to VS 2008 that contained Required Field Validator controls and used a Application_PreRequestHandlerExecute in the Global.asax file. I was getting the error Microsoft JScript runtime error: 'WebForm_PostBackOptions' is undefined. After much troubleshooting, googling, head banking against desk, and finally getting Microsoft involved, we discovered that if you remove or comment out the Application_PreRequestHandlerExecute event then do a full compile, all worked well. Then you can simply put back the Application_PreRequestHandlerExecute event and all continues to work well. Microsoft is doing research as to the root cause. Hope this helps someone!
Regards,
Todd

# re: 'WebForm_PostBackOptions' is undefined error, ASP.NET 2.0

Left by Bill at 11/20/2009 9:22 AM
Gravatar
Todd, has a similar project, tried that fix, no joy. Seems to happen about once a month to us, we jump through hoops and somehow it disappears. Hoops that actually fix the problem remain unknown.

Your comment:



 (will not be displayed)


 
 
 
 
 

Live Comment Preview:

 
«November»
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345