Hi,
I have a website which i have added Blowery HTTPCompression to. This is a HTTPModule and will compress all the aspx, css and js files which are served up. It works very well with no problems. However it of course does not compress PageMethods JSON responses, for this i have tried to add the RadCompression HTTP Module to the site.
As soon as i have both modules added to the web config the session state breaks. For example i load the website up and at the first line instance where the Session is accessed an exception is thrown with the text below:
-------------------------------------------------------------------------------
System.Web.HttpException was unhandled by user code
Message="Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\\<system.web>\\<httpModules> section in the application configuration."
Source="System.Web"
ErrorCode=-2147467259
StackTrace:
at System.Web.UI.Page.get_Session()
at System.Web.UI.UserControl.get_Session()
at Master.Page_Load(Object sender, EventArgs e) in c:\UKWrap\UI\RePublic\Master.master.cs:line 194
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
-------------------------------------------------------------------------------
Now if i run the site with only the RadCompression HTTP Module added then this error does not occur and the JSON responses from the PageMethods are compresed, BUT none of the standard .aspx, .css, and .js files are compressed.
And if i run the site with ONLY the Blowery HTTP Module added and not the RadCompression, then the site run and all the .aspx, .css, and .js responses are correctly compressed HOWEVER the JSON page method responses are not compressed.
Is RadCompression not compatible with other compression modules? And if not then why does it not seem to support compressing the .aspx, .css, .js files? If there is a way to use RAD compression to completely replace Blowery HTTP compression please let me know. I have read that RadCompression does not support IE6, if this is the case then it is going to be useless as a replacement for Blowery and i will need the two of them both running as HTTP modules.
Any ideas?
Thanks,
Paul
I have a website which i have added Blowery HTTPCompression to. This is a HTTPModule and will compress all the aspx, css and js files which are served up. It works very well with no problems. However it of course does not compress PageMethods JSON responses, for this i have tried to add the RadCompression HTTP Module to the site.
As soon as i have both modules added to the web config the session state breaks. For example i load the website up and at the first line instance where the Session is accessed an exception is thrown with the text below:
-------------------------------------------------------------------------------
System.Web.HttpException was unhandled by user code
Message="Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\\<system.web>\\<httpModules> section in the application configuration."
Source="System.Web"
ErrorCode=-2147467259
StackTrace:
at System.Web.UI.Page.get_Session()
at System.Web.UI.UserControl.get_Session()
at Master.Page_Load(Object sender, EventArgs e) in c:\UKWrap\UI\RePublic\Master.master.cs:line 194
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
-------------------------------------------------------------------------------
Now if i run the site with only the RadCompression HTTP Module added then this error does not occur and the JSON responses from the PageMethods are compresed, BUT none of the standard .aspx, .css, and .js files are compressed.
And if i run the site with ONLY the Blowery HTTP Module added and not the RadCompression, then the site run and all the .aspx, .css, and .js responses are correctly compressed HOWEVER the JSON page method responses are not compressed.
Is RadCompression not compatible with other compression modules? And if not then why does it not seem to support compressing the .aspx, .css, .js files? If there is a way to use RAD compression to completely replace Blowery HTTP compression please let me know. I have read that RadCompression does not support IE6, if this is the case then it is going to be useless as a replacement for Blowery and i will need the two of them both running as HTTP modules.
Any ideas?
Thanks,
Paul