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

Issue with resource file in IIS 7

3 Answers 91 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Adonis
Top achievements
Rank 1
Adonis asked on 20 Feb 2012, 07:31 AM
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?

3 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 22 Feb 2012, 12:28 PM
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 >>
0
Adonis
Top achievements
Rank 1
answered on 26 Feb 2012, 03:30 PM
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/
0
Adonis
Top achievements
Rank 1
answered on 26 Feb 2012, 03:53 PM
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
Tags
Ajax
Asked by
Adonis
Top achievements
Rank 1
Answers by
Martin
Telerik team
Adonis
Top achievements
Rank 1
Share this question
or