RadCompression not working

5 posts, 0 answers
  1. Jannis
    Jannis avatar
    9 posts
    Member since:
    May 2013

    Posted 24 May 2013 Link to this post

    Hi,
    i want to enable viewstate Compression in my Webapplication project.

    I read the documentation but i think i do something wrong.
    This is how my web.config looks like:
    <?xml version="1.0"?>
    <!--
      Weitere Informationen zum Konfigurieren der ASP.NET-Anwendung finden Sie unter
      -->
    <configuration>
      <system.web>
        <siteMap defaultProvider="default">
          <providers>
            <clear />
            <add name="default" type="System.Web.XmlSiteMapProvider" siteMapFile="Web.sitemap" securityTrimmingEnabled="true" />
          </providers>
        </siteMap>
        <authentication mode="Forms">
          <forms name="AuthCookie" loginUrl="user_management\unregistered\Login.aspx" protection="All" path="/" />
        </authentication>
     
        <httpHandlers>
          <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
        </httpHandlers>
          <httpModules>
              <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
          </httpModules>
      </system.web>   
      <system.webServer>
          <modules>
              <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
          </modules>
        <validation validateIntegratedModeConfiguration="false" />
        <handlers>
          <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
        </handlers>
      </system.webServer>
    </configuration>

    But i dont know where to enable the radcompression
    In the documentation i read that i have to add the following parts in the web.config.
    <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 enablePostbackCompression="true"/>
    </telerik.web.ui>

    But it is not obvious where exactly. Tried several combinations without success. Page was blank most of the times.
    Can you complete my web.config and make it working?

    By The way: I'm working with Visual Web Developer 2010 Express

    Thanks and best regards
  2. Radoslav
    Admin
    Radoslav avatar
    1564 posts

    Posted 29 May 2013 Link to this post

    Hi Jannis,

    When you enable the RadCompression module, you get the entire response compressed including the ViewState.To enable the RadCompression you need to add a HttpModule registration to the site's web.config like you did in your web.config file:
    ?xml version="1.0"?>
    <!--
      Weitere Informationen zum Konfigurieren der ASP.NET-Anwendung finden Sie unter
      -->
    <configuration>
      <system.web>
        <siteMap defaultProvider="default">
          <providers>
            <clear />
            <add name="default" type="System.Web.XmlSiteMapProvider" siteMapFile="Web.sitemap" securityTrimmingEnabled="true" />
          </providers>
        </siteMap>
        <authentication mode="Forms">
          <forms name="AuthCookie" loginUrl="user_management\unregistered\Login.aspx" protection="All" path="/" />
        </authentication>
      
        <httpHandlers>
          <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
        </httpHandlers>
          <httpModules>
              <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
          </httpModules>
      </system.web>   
    <!-- If you're using IIS7, then add this, too-->
      <system.webServer>
          <modules>
              <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
          </modules>
        <validation validateIntegratedModeConfiguration="false" />
        <handlers>
          <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
        </handlers>
      </system.webServer>
    </configuration>
    However, you also have the option to turn on only ViewState compression. If this is your case you can add the posted code from this documentation article into your BrowserFile.browser file:
    http://www.telerik.com/help/aspnet-ajax/compression.html (ViewState compression section)
    Additionally you do not need to add sectionGroup with radCompression section if you do not want to exclude particular request handlers.

    Also please note that by default the RadCompression module will compress AJAX requests only (with the content type headers specified above), however you can enable compression for regular postbacks as well setting the enablePostbackCompression property to true.

    I hope this helps.

    Regards,
    Radoslav
    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 their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jaime Bula
    Jaime Bula avatar
    41 posts
    Member since:
    Apr 2009

    Posted 26 Aug 2013 Link to this post

    Hi,

    I'm using  2013.2.717.45, but I haven't been able to make it work with the MIME type application/soap+msbin1. Was this support removed? If so, what was the latest version that supported it.

    Best Regards,

    Jaime

     

  5. Radoslav
    Admin
    Radoslav avatar
    1564 posts

    Posted 29 Aug 2013 Link to this post

    Hello Jaime,

    Based on the provided information it is hard to say what is causing the describe issue. Could you please elaborate a bit more on your scenario? On which IIS do you host the application? If the IIS is 7.5 do you have enabled the dynamic compression of IIS?  Also if you were enabled the IIS7.5 dynamic compression and use our RadCompression for some cases the content can be compressed twice. In such cases you need to choose to disable the IIS dynamic compression or to disable RadCompression.

    Looking forward for your reply.

    Regards,
    Radoslav
    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.
  6. Jaime Bula
    Jaime Bula avatar
    41 posts
    Member since:
    Apr 2009

    Posted 29 Aug 2013 Link to this post

    First, thank you for your answer,

    I have already been able to go arround this issue. What happened is that Silvelight in Out Of Browser Scenarios Doesn't support Compression! Of any kind!

    Best Regards,

    Jaime Luis Bula P.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017