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

radcompression in sl4 & wcf ria 1.0

6 Answers 225 Views
Compression
This is a migrated thread and some comments may be shown as answers.
Adrian Pay
Top achievements
Rank 1
Adrian Pay asked on 11 Jun 2010, 12:37 PM
hi,

im using radcompression to compress my wcf ria requests but im having error. when i use fiddler, it says, the reported size doesnt match the actual size being sent? i suppose this becuase of the compression but it should match right.

is there anything wrong in my implementation? i just copy the Telerik.Web.UI.dll in my servers bin folder. then add in webconfig's httpmodules. anything else?

thank you!

6 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 14 Jun 2010, 11:42 AM
Hello Adrian,

Can you please verify that you are using RadControls for ASP.NET AJAX latest internal build, as the current official version (Q1 2010 SP2) of RadCompression does not support official version of WCF RIA services.

If you continue to experiencing difficulties, please consider providing (through a formal support ticket) a small runnable project in which this behavior can be observed. This way we will be able to debug it locally and provide you with more to- the-point answer.

Kind regards,
Rosen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Scott R
Top achievements
Rank 1
answered on 04 Aug 2010, 05:25 PM
This problem is very easy to duplicate. Just create a WcfService using the template provided by VS 2010 then enable RadCompression in web.config. The WCF calls will start returning a content-type mismatch.

I will provide a working (or non-working) sample via a ticket, but I'm wondering if the problem has already been fixed in the internal build and, if so, when the next release or SP will be available?

Thanks,
Scott
0
Nikolay Rusev
Telerik team
answered on 05 Aug 2010, 03:00 PM
Hello Scott,

Indeed we are aware of this behavior.This unwanted behavior is replicated only when using IE and VS2010 build-in web server set to run on .NET4.0. The same page runs ok in FireFox and in IE if ran on IIS7.5 with .NET 4.0 pool or on integrated web server under .NET 2.0/3.5.

Unfortunately we need further investigations. As temporary solution you can exclude the service from being compressed.
<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="Service.svc" matchExact="false"/>
      </excludeHandlers>
    </radCompression>
  </telerik.web.ui>
....




Regards,
Nikolay
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Scott R
Top achievements
Rank 1
answered on 05 Aug 2010, 05:09 PM
Thanks for the info Nikolay. I had disabled all RadCompression, but excluding just the service is better. Thanks for the tip!
0
Kevin
Top achievements
Rank 1
answered on 24 Nov 2010, 07:09 PM
I too am experiencing this issue and it doesn't appear to have been fixed for the Q3 2010 release.  I have some extra information that might help Telerik resolve this issue.

I am using a WCF service that sends the bytes of a .docx file to the new RadRichTextBox.  I have tested the 4 permutations of IIS6/7 vs. Compression on/off and it appears that the bug with RadCompression lies in using IIS 6.

IIS 6 + RadCompression ON = Failure, size mismatch. HTTP Header says to expect a size of 33,635 bytes where the actual size returned is 34,549 bytes.  Something somewhere in my code fails at that point, I have not dug into that

IIS 6 + RadCompression OFF = Success.  HTTP Header and actual size match at 33,635

IIS 7 + RadCompression ON = Success. HTTP Header = 34,812, actual is the same.

IIS 7 + RadCompression OFF = Success. HTTP Header = 33,635, actual is the same

--Tested using IIS 6 (Windows Sever 2003) and IIS 7.5 (Windows 7) both with .NET 4 using .NET 4 app pools.
0
Nikolay Rusev
Telerik team
answered on 30 Nov 2010, 09:06 AM
Hello Kevin,

This is known behavior so far. You can find the issue logged in MS Connect and keep track of its status:
WCF Compression Issue

Regards,
Nikolay
the Telerik team
Browse the vast support resources we have to jumpstart 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.
Tags
Compression
Asked by
Adrian Pay
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Scott R
Top achievements
Rank 1
Nikolay Rusev
Telerik team
Kevin
Top achievements
Rank 1
Share this question
or