Issue with RadCompression in Windows Azure

4 posts, 0 answers
  1. Hee
    Hee avatar
    25 posts
    Member since:
    Sep 2011

    Posted 30 Aug 2013 Link to this post

    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


  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 04 Sep 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Hee
    Hee avatar
    25 posts
    Member since:
    Sep 2011

    Posted 24 Sep 2013 Link to this post

    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


  5. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 27 Sep 2013 Link to this post

    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.
Back to Top