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

RadCompression not working

4 Answers 220 Views
Compression
This is a migrated thread and some comments may be shown as answers.
Jannis
Top achievements
Rank 1
Jannis asked on 24 May 2013, 12:39 PM
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

4 Answers, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 29 May 2013, 07:05 AM
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.
0
Jaime Bula
Top achievements
Rank 2
answered on 26 Aug 2013, 07:01 PM
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

 

0
Radoslav
Telerik team
answered on 29 Aug 2013, 07:27 AM
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.
0
Jaime Bula
Top achievements
Rank 2
answered on 29 Aug 2013, 07:26 PM
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.
Tags
Compression
Asked by
Jannis
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Jaime Bula
Top achievements
Rank 2
Share this question
or