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

IIS 7 and Telerik

4 Answers 270 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 1
Ian asked on 20 Jan 2010, 06:50 PM
I'm struggling to get IIS 7 to play nice with Telerik.

I get the following exception when I try to run an .aspx file.  I've migrated the config file using appcmd and adding the WebResouce.axd to both httpHandlers and handlers has not caused the problem to go away.  I'm inclined to think at this point though that the bug is with Telerik since I've seen other posts for third party component bugs cause a general complaint about WebResource.axd not being registgered.

I've gone through the troubleshooting page here on this site for configuration problems:  Please do NOT post this.  I've followed it, but It doesn't address my issue.

Any help would be appreciated. 

I'm using Telerik 2009.2.701.35 on a Windows 2008 R2 box running IIS 7.  The Telerik handlers are all appropriately mapped according to the console manager.

[InvalidOperationException: The WebResource.axd handler must be registered in the configuration to process this request.

<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <httpHandlers>
            <add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True" />
        </httpHandlers>
    </system.web>
</configuration>]
   System.Web.Handlers.AssemblyResourceLoader.GetWebResourceUrlInternal(Assembly assembly, String resourceName, Boolean htmlEncoded) +8552206
   System.Web.Handlers.AssemblyResourceLoader.GetWebResourceUrl(Type type, String resourceName, Boolean htmlEncoded) +296
   System.Web.UI.ClientScriptManager.GetWebResourceUrl(Page owner, Type type, String resourceName, Boolean htmlEncoded) +82
   System.Web.UI.ClientScriptManager.GetWebResourceUrl(Type type, String resourceName) +16
   Telerik.Web.SkinRegistrar.RegisterCssReferences(ISkinnableControl _control) +271
   Telerik.Web.UI.RadDataBoundControl.RegisterCssReferences() +51
   Telerik.Web.UI.RadDataBoundControl.ControlPreRender() +36
   Telerik.Web.UI.RadDataBoundControl.OnPreRender(EventArgs e) +22
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 21 Jan 2010, 02:26 PM
Hello,

I don't see anything registered under <system.webServer> in your web.config - all IIS7 registration should be under <system.webServer>!

Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Ian
Top achievements
Rank 1
answered on 21 Jan 2010, 05:02 PM
I think you've me confused with another issue.  I didn't post my config file.

Here is what I do have in the section you mentioned.  FWIW -- I don't think this is a Telerik issue anymore since I did additional testing by removing all Telerik controls from my master page and ran into a similar problem.

I've opened a ticket with Microsoft.

  <system.webServer> 
    <validation validateIntegratedModeConfiguration="false" /> 
    <modules> 
      <!-- <add name="RadCompression" type="Telerik.Web.UI.RadCompression" /> 
            <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" preCondition="managedHandler" />--> 
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" preCondition="managedHandler" /> 
      <add name="DomainServiceModule" preCondition="managedHandler" type="System.Web.Ria.Services.DomainServiceHttpModule, System.Web.Ria, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> 
      <add name="SecurityModule" type="Assurant.STP.Common.HttpModules.SecurityModule, Assurant.STP.Common.HttpModules" preCondition="managedHandler" /> 
    </modules> 
    <handlers> 
      <remove name="WebServiceHandlerFactory-Integrated" /> 
      <remove name="ScriptHandlerFactory" /> 
      <remove name="ScriptHandlerFactoryAppServices" /> 
      <remove name="ScriptResource" /> 
      <!-- <remove name="WebResource" />--> 
      <add name="WebResource" path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" /> 
      <!--<add name="ChartImage.axd_*" path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode,runtimeVersionv2.0" /> 
       <add name="Telerik.Web.UI.SpellCheckHandler.axd_*" path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode,runtimeVersionv2.0" /> 
            <add name="Telerik.Web.UI.DialogHandler.aspx_*" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode,runtimeVersionv2.0" /> 
            <add name="Telerik.RadUploadProgressHandler.ashx_*" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI" preCondition="integratedMode,runtimeVersionv2.0" />--> 
      <add name="Telerik.Web.UI.WebResource.axd_*" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" preCondition="integratedMode,runtimeVersionv2.0" /> 
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />      
    </handlers> 
  </system.webServer> 
0
King Wilder
Top achievements
Rank 2
answered on 27 Feb 2010, 07:48 PM
I figured out the way to fix this, but not why it occurred in the first place.

Even if you have the handler entered correctly in your web.config file, it won't fix the issue if, for some reason, the handler is not added to your Handler Mappings in IIS 7.

The reason why it's not there in some applications and it is in others, is still beyond my comprehension.

But I fixed the issue by going into IIS 7 and manually adding the reference to the handler.

I've attached two images that show what the Handler Mappings in IIS 7 should include.

handler-interface.jpg - this shows the Handler Mappings page in IIS 7 and the handler that needs to be included.
edit-handlers.jpg - this is how to add the handler to the mappings

I hope this helps.

Thanks,

King Wilder
0
nikhil
Top achievements
Rank 1
answered on 18 Apr 2011, 07:56 AM
Hi,

I am using telerik rad grid.sometimes grid is not rendering.please suggest. i am using IIS7 but in IIS 6 all works perfect.

Thanks

Nikhil
Tags
General Discussions
Asked by
Ian
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Ian
Top achievements
Rank 1
King Wilder
Top achievements
Rank 2
nikhil
Top achievements
Rank 1
Share this question
or