I recently deployed my application to our server and have been receiveing the “WebForm_PostBackOptions is undefined” error on several pages (after a button is clicked). I’ve done hours of research on this issue and have tried many of the suggestions to fix this error.
First, let me give you a little information about my application:
• The app was recently converted to ASP.NET 2.0
• On the server, it uses a new application pool for asp 2.0
• Includes several 3rd party controls (RADControls, Intersoft WebGrid and WebCombo)
• Runs fine on my local machine
• My server is running Windows Server 2003 and using IIS 6.0.
• The Application is under a domain with an SSL certificate.
• We have another 2.0 application (built from scratch, not converted) running flawlessly on the same server.
• The ASP.Net property for the virtual directory in IIS is set to use 2.0.
• For deployment, I compiled the project locally and pushed the files to the server.
I think the problem is with the WebResources.axd file. For some reason, the application cannot extract the needed scripts from it. I took someone’s suggestion of viewing the source for a page, locating a call to the WebResources.axd file, copying the link, and pasting in a browser window. This should return the requested script, however I get an error message: “Session state is not available in this context.” I’m also a little confused about where the WebResources.axd file is located. Does anyone know where it is? Is it embedded in a dll? Should it be in the root directory?
It should be noted that the RADControls were not working correctly at first. By default, they try and access the WebResources.axd file. I had to insert UseEmbeddedScripts=”false” in every control declaration, which forces them to use the scripts contained in the RADControls folder. This fixed the problem.
I’ve also done the following to try and fix the errors.
• in IIS, opened the properties for the virtual directory, clicked configuration, and verified that the .axd extension was mapped to c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll. I also verified that the checkbox was unchecked for “Verify if file exists”.
• Verified that the asp.net 2.0 installation was installed correctly. Like I mentioned above, we have another 2.0 application that runs flawlessly.
I came across a couple cases where this error message was fixed by including the WebForms.js file in the root directory and adding a reference to it on all pages. I have not tried this because I don’t exactly know how to get this WebForms.js file. I’ve searched my computer for it with no luck. I read that it is included in the System.Web dll, but I’m unsure as to how to extract this. Does anyone know how to do this?
Thank you in advance for your help.