Html5 ReportView export fails in Chrome/FireFox

4 posts, 0 answers
  1. Brian
    Brian avatar
    3 posts
    Member since:
    Oct 2013

    Posted 25 Jul 2014 Link to this post

    When the following line is included in the web.config, the export feature in the Html5 Report View fails for Chrome and Firefox.

    <system.webServer>
         <modules runAllManagedModulesForAllRequests="true">
                 <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode" />
         </modules>
    </system.webServer>

    Please advise since we would like to keep the compression active on our site.
  2. Nasko
    Admin
    Nasko avatar
    1049 posts

    Posted 29 Jul 2014 Link to this post

    Hello Brian,

    If IIS dynamic compression and RadCompression are both enabled this can lead to double compression of the response and the described issues may occur.

    We suggest to disable RadCompression just for the Web API by adding the following configuration to the web.config:
    <configuration>
      <configSections>
        <sectionGroup name="telerik.web.ui">
          <section name="radCompression" type="Telerik.Web.UI.RadCompressionConfigurationSection, Telerik.Web.UI, PublicKeyToken=121fae78165ba3d4" allowDefinition="MachineToApplication" requirePermission="false"/>
        </sectionGroup>
      </configSections>
      
      <telerik.web.ui>
        <radCompression>
          <excludeHandlers>
            <add handlerPath="api/reports/" matchExact="false"/>
          </excludeHandlers>
        </radCompression>
      </telerik.web.ui>
    ...

    where the handlerPath should point to the REST service serviceUrl.

    For more information, please refer to the RadCompression help article.

    Regards,
    Nasko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. Brian
    Brian avatar
    3 posts
    Member since:
    Oct 2013

    Posted 29 Jul 2014 in reply to Nasko Link to this post

    Can you please clarify the documentation on RadCompression.  The article seems to start out by saying that RadCompression doesn't replace IIS Compression, and that they can work together, but then later in the article it says "When using IIS dynamic compression enabling RadCompression is not required as this will result in double compression of the response.".  We are using IIS 8, do we need RadCompression or not?
  4. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2461 posts

    Posted 01 Aug 2014 Link to this post

    Hello Brian,

    As documented in our help article, when using IIS dynamic compression you should not include RadCompression, because having a double compression of the response will cause problems and the page will probable break after an AJAX request.

    If you have enabled Dynamic Compression in IIS you will not be able to use RadCompression, but if you disable the IIS compression you could use RadCompression instead without any problems.

    Please let me know if you have other questions on this matter.


    Regards,
    Konstantin Dikov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top