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

Issue with RadCompression

3 Answers 148 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Brandon
Top achievements
Rank 1
Brandon asked on 02 Aug 2011, 02:32 AM
Hi Everyone,

Version of Telerik.Web.Ui DLL (2010.3.1109.35)
I have an issue where RadCompression is somehow related.  When viewing a PDF File (Generated by Reporting Services) it comes back with "File does not begin with %PDF-".  When I disable RadCompression in the Web.Config it works.
So then I attempted to exclude the pages that call the Reporting Services like this

<telerik.web.ui>
    <radCompression>
      <excludeHandlers>
        <add handlerPath="LaunchLink.aspx" matchExact="false"/>
        <add handlerPath="LaunchExternalSite.aspx" matchExact="false/>
      </excludeHandlers>
    </radCompression>
  </telerik.web.ui>

It does not seem to be making any difference.

Any info will be greatly appreciated.

Thanks

Bran

3 Answers, 1 is accepted

Sort by
0
Accepted
Pavel
Telerik team
answered on 03 Aug 2011, 02:56 PM
Hi Bran,

Could you elaborate what reporting service are you using? You can try to disable RadCompression for the specific page by adding the following attribute to its class:
[RadCompressionSettings(HttpCompression = CompressionType.None)]

Let me know if that helps.

Regards,
Pavel
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
Brandon
Top achievements
Rank 1
answered on 04 Aug 2011, 01:35 AM
Thanks for the response.

I have some further information.

RadCompression On
===============
Works in IE8
Works in Chrome
PDF Error in Firefox

RadCompression Off
===============
Works in all three

I tried the code you suggested and it had no affect.
0
Brandon
Top achievements
Rank 1
answered on 04 Aug 2011, 02:08 AM
Resolved.  Does not quite make sense but I am happy it is all working now

Solution:  Have both the exclusions in web.config and the "[RadCompressionSettings(HttpCompression = CompressionType.None)]" for the classes

Thanks for your help

Bran
Tags
General Discussions
Asked by
Brandon
Top achievements
Rank 1
Answers by
Pavel
Telerik team
Brandon
Top achievements
Rank 1
Share this question
or