Another interesting issue in ASP.NET 2.0. If you use Http Compression module such as blowery, please note that in ASP.NET 2.0 this may cause an issue so all your client script validations and postbacks will stop working. You get various javascript errors like 'WebForm_PostBackOptions' is undefined. It took me several hours to figure out (hope this post will save hundreds of thousands of developers hours world wide).
In ASP.NET 2.0 all validation scripts are processed via server-side WebResource.axd handler while in ASP.NET 1.1 you can find them in aspnet_client folder. Http compression prevents WebResource.axd client side scripts to render normally (or at all ...). Excluding the path=WebResource.axd from the compression configuration solves the problem.
#re: ASP.NET 2.0: Http Compression and WebResource.axd
I tried it but it didn't work for me - I get the following error - still investigating this. The blowery module didnt work for me no matter what I did - I'm running DNN V4.3.5 and I get 'WebForm_PostBack' problems left and right even with Jun's work around above.
See WinFxCompressionModule Error below (should be simple enough to debug):
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
WinFxProgrammer.WinFxHttpCompression..cctor() +100
[TypeInitializationException: The type initializer for 'WinFxProgrammer.WinFxHttpCompression' threw an exception.]
#re: ASP.NET 2.0: Http Compression and WebResource.axd
I recompiled the dll and redeployed and it works just fine - there was an attribute on the WinFxHttpCompressionModule element in the sample web.config called preferredCompressionLevel - above the comments had correctly referred to it as "maximumCompressionLevel" but hadn't taken notice first time round. Anyways, WebResource.Axd is no longer giving me a headache and my pages are 30-50% smaller than they were before.
#re: ASP.NET 2.0: Http Compression and WebResource.axd
How can i enable http compression, can somebody tell me i really want it. And also how smaller are my pages gonan get, en does it compress javascript and html or only html?