Issue with resource file in IIS 7

4 posts, 0 answers
  1. Adonis
    Adonis avatar
    34 posts
    Member since:
    Nov 2008

    Posted 20 Feb 2012 Link to this post

    I am having an issue with Ajax post-backs on some pages when I am on a page that is using URL rewrite for example
    http://www.myajaxsite.com/admin/ the Ajax post-backs such as Radgrid filtering do not work but if I type in the full URL http://www.myajaxsite.com/admin/default.aspx then all is fine.

    Does something need to change in the Web.config handlers for this to work properly?
  2. Martin
    Admin
    Martin avatar
    833 posts

    Posted 22 Feb 2012 Link to this post

    Hello Adonis,

    Note that when RadCompression is enabled and you are using .NET 4.0, event handlers might not be raised in a default document in IIS 7 or IIS 7.5 Integrated Mode. This problem is caused by a breaking change in .NET 4.0 described here. To workaround it one can set preCondition="managedHandler" for the RadCompression module. You may also need to remove the runAllManagedModulesForAllRequests setting from your web.config if you have it (or set it to false).

    I hope this helps.

    Kind regards,
    Martin
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. Adonis
    Adonis avatar
    34 posts
    Member since:
    Nov 2008

    Posted 26 Feb 2012 Link to this post

    I have made the suggested changes, it does not seem to make a difference in the way the application is responding

    [NullReferenceException]: Object reference not set to an instance of an object.<br
     at Telerik.Web.UI.RadCompression.Compress(HttpApplication application)<
    br>  
    at Telerik.Web.UI.RadCompression.PreRequestHandlerExecute(Object sender, EventArgs e)<
    br>  
    at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()<
    br
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)<
    br>

    Works fine if the URL is pointing to the full path.  Http://mywebapp/admin/default.aspx  VS. just Http://mywebapp/admin/
  4. Adonis
    Adonis avatar
    34 posts
    Member since:
    Nov 2008

    Posted 26 Feb 2012 Link to this post

    I was able to resolve the issue with the following section in 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">  
        <excludeHandlers>         
          <add handlerPath="" matchExact="false" />         
        </excludeHandlers>  
      </radCompression>  
    </telerik.web.ui>


    Again thanks for your help
Back to Top