This is a migrated thread and some comments may be shown as answers.

RadCompression Module causes blank (or incomplete) response on AJAX Queries through JQuery

4 Answers 111 Views
Compression
This is a migrated thread and some comments may be shown as answers.
Anthony Terra
Top achievements
Rank 1
Anthony Terra asked on 13 Sep 2011, 02:54 PM
I just wanted to post this so someone else doesn't waste the 9 hours I wasted the other day.  If you are using the RadCompression Module, in conjunction with jquery/javascript ajax calls to the web server you WILL have the following issue on your Visual Studio development web server.

The following demonstrates the issue:

Standard Telerik module includes in the system.web section of the web.config:
<httpModules>
<add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule"/>
<add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>
</httpModules>

Standard Telerik module includes in system.webServer section of the web.config:
<modules runAllManagedModulesForAllRequests="true">
    <remove name="RadUploadModule"/>
    <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode"/>
    <remove name="RadCompression"/>
    <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode"/>
</modules>

The results of the Ajax call with the compression module included can be seen in the screen4.png attachment.

If we turn the compression module off (as follows):
<httpModules>
<add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule"/>
</httpModules>


<modules runAllManagedModulesForAllRequests="true">
<remove name="RadUploadModule"/>
<add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode"/>
<remove name="RadCompression"/>
</modules>


The results of the Ajax call with the compression module not included can be seen in the screen5.png attachment.

Please note:  This is only an issue with the Web development server.  IIS handles the compression correctly.

I hope this helps anyone struggling with thier Ajax Calls while using telerik. 

Thanks,
Anthony

4 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 16 Sep 2011, 07:28 AM
Hello Anthony,

Thank you for sharing your experience with our community. Unfortunately, I can not confirm whether the problem is caused by an issue in RadCompression or has something in common with the VS development server. My suggestion is to open a formal support ticket and send me a small sample demonstrating the issue. This way I will be able to debug it locally and provide you with more to the point resolution.

Regards,
Martin
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal
0
Anthony Terra
Top achievements
Rank 1
answered on 16 Sep 2011, 03:47 PM
Martin,

I appologize if it came across as I think there is an issue with the Telerik Compression.  I believe this is an issue with the development web server in VS 2010.  I do not have any issue with the compression module in IIS.  However, I have attached a project that confirms the issue.  The project is written using MVC 3 Razor, but the issue is the same for ASP.NET Forms.

The Web.Config has compression enable.  If you disable it you will see the ajax call work.

Please let me know if you need any more clarification.

Thanks,

Anthony
0
Martin
Telerik team
answered on 21 Sep 2011, 05:46 PM
Hello Anthony,

I have already addressed the support ticket you have opened on the same topic. To make my answer available for our community, I am pasting it here as well:

"Based on your project I created and ran a sample project on my side and got the Content-Length mismatch problem discussed here. As confirmed in the forum thread, the issue is not observed in FF. Note that the issue is already reported to Microsoft."

I hope this helps.

Best wishes,
Martin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Andrew
Top achievements
Rank 1
Iron
Iron
answered on 20 Feb 2012, 01:56 AM
It might be comforting to know you weren't alone in your pain.

Here's a StackOverflow post I had made the previous day. I've only just now realised now it's related to the compression module.

http://stackoverflow.com/questions/7384176/wcf-service-returns-incorrect-content-length-when-using-gzip-encoding 
Tags
Compression
Asked by
Anthony Terra
Top achievements
Rank 1
Answers by
Martin
Telerik team
Anthony Terra
Top achievements
Rank 1
Andrew
Top achievements
Rank 1
Iron
Iron
Share this question
or