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

5 posts, 0 answers
  1. Anthony Terra
    Anthony Terra avatar
    7 posts
    Member since:
    May 2009

    Posted 13 Sep 2011 Link to this post

    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
  2. Martin
    Admin
    Martin avatar
    811 posts

    Posted 16 Sep 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Anthony Terra
    Anthony Terra avatar
    7 posts
    Member since:
    May 2009

    Posted 16 Sep 2011 Link to this post

    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
  5. Martin
    Admin
    Martin avatar
    811 posts

    Posted 21 Sep 2011 Link to this post

    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
  6. Andrew
    Andrew avatar
    34 posts
    Member since:
    Dec 2010

    Posted 19 Feb 2012 Link to this post

    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 
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017