can not load ajax control toolkit when Gzip website

Last post 11-01-2008 1:57 AM by JustinSLR. 2 replies.

Sort Posts:

  • can not load ajax control toolkit when Gzip website

    10-31-2008, 5:35 AM
    • Member
      point Member
    • JustinSLR
    • Member since 10-31-2008, 5:24 AM
    • Posts 4

     i have gzip my website using name space System.IO.Compression in Global.asax file
    and now i want use ajax control toolkit in my website but when i run it in browser then Error: Ajax Control is not effect another if i Comment Gzip in Global.asax file then Ajax is well
    i don't why ???
    Somebody help me !!!

  • Re: can not load ajax control toolkit when Gzip website

    10-31-2008, 6:10 AM
    Answer
    • Member
      40 point Member
    • jksathya
    • Member since 09-30-2007, 2:15 PM
    • Posts 12

    try to use this Blowery compression. you should download the blowery compression kit and add the code to your web config file

     

     <configSections>
        <sectionGroup name="blowery.web">
          <section name="httpCompress" type="blowery.Web.HttpCompress.SectionHandler, blowery.Web.HttpCompress"/>
        </sectionGroup>
        <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
       <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
         <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
         <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
         <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
        </sectionGroup>
       </sectionGroup>
      </sectionGroup>
      </configSections>

      <!-- config section for my http module -->
      <blowery.web>
        <!--
       Here's an example on how to change the algorithm or compression level
       
          <compressionModule preferredAlgorithm="deflate|gzip" compressionLevel="high|normal|low"/>
       
       so, to use deflate by default, and high compression, you would use the following line
       -->
        <httpCompress preferredAlgorithm="gzip" compressionLevel="high">
          <excludedMimeTypes>
            <add type="image/jpeg"/>
            <add type="image/gif"/>
          </excludedMimeTypes>
          <excludedPaths>
            <add path="ebResource.axd"/>
            <add path="WebResource.axd"/>
          </excludedPaths>
        </httpCompress>
      </blowery.web>

    It will work fine

    Thanks,

    Sathya

  • Re: can not load ajax control toolkit when Gzip website

    11-01-2008, 1:57 AM
    • Member
      point Member
    • JustinSLR
    • Member since 10-31-2008, 5:24 AM
    • Posts 4

    oh thanks you very much !!! it's allright !! :D

Page 1 of 1 (3 items)