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

Issue with RadCompression in Windows Azure

3 Answers 63 Views
Compression
This is a migrated thread and some comments may be shown as answers.
Hee
Top achievements
Rank 1
Hee asked on 30 Aug 2013, 05:31 AM
Hello,
I uploaded web site with RadControls to Windows Azure.
And there is 500 server error when I clicked RadButton. (See console of browser) (There is not error in my IIS)
So I debugged it and I figured out. The issue is related to RadCompression.
When I removed RadCompression from web.config, the error has not occurred any more.

But I need to use RadCompression so I tried to solve the issue in different ways.
And when I set <urlMappings> to web.config, the error has not occurred any more.

So, I have two questions below.
1. Why an error occur when I use RadCompression without setting <urlMappings> in Azure?
2. What does <urlMappings> have to do with RadCompression?


I attached my test Web Site source and azure site url.
Please refer to it and answer me about two questions.

Azure site url: http://telerikcontrol.azurewebsites.net/
Web site source: http://www.mediafire.com/?cfq9tx53210mq63


3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 04 Sep 2013, 07:49 AM
Hi Hee,

Note that the static HTTP Compression is enabled by default for the Windows Azure and by enabling the RadCompression this may lead to double compressing the response and cause various issues. Also pleas verify if the dynamic compression is also enabled by having the following into your config:

<urlCompression doDynamicCompression="true" dynamicCompressionBeforeCache="true" />

If the dynamic compression is enabled try to disable it and verify how this works.

Regards,
Maria Ilieva
Telerik
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 the blog feed now.
0
Hee
Top achievements
Rank 1
answered on 25 Sep 2013, 02:27 AM
Hi,
Thanks for your reply.

Hm..I don't understand it.
Our another web site is using both of IIS Compression (static and dynamic both) and RadCompression.
But there wasn't error.
But if I remove <urlMappings> section, there was the same error.
So I'm wondering what does <urlMappings> have to do with RadCompression?
There is no error only when I add <urlMappings> section to web.config.

We haven't set <urlCompression doDynamicCompression="true" dynamicCompressionBeforeCache="true" /> on web.config.
And if I set <urlCompression doDynamicCompression="false" dynamicCompressionBeforeCache="false" />,
there was the same error still.

Thanks,
Hee


0
Maria Ilieva
Telerik team
answered on 27 Sep 2013, 11:30 AM
Hi Hee,

I suppose that the error appear after disabling the urlMappings as the response of the original page is actually compressed and the there is no Ajax response to be compressed on the redirected page. As I previously mentioned mixing dynamic IIS compression with the RadCompression could lead to various issues and is not supported scenario.
Find attached a sample application which demonstrates the correct functionality of the RadCompression when urlMappings exists.

Regards,
Maria Ilieva
Telerik
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 the blog feed now.
Tags
Compression
Asked by
Hee
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Hee
Top achievements
Rank 1
Share this question
or