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

IIS7 with 2008 Q3 problems

2 Answers 34 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Winkey
Top achievements
Rank 1
Winkey asked on 21 Aug 2009, 06:29 AM
Hi,
   I have developed the website in VS2008 with WindowsXP and it can run well in server 2003. But when I move the site into server2008, all the controls can not click. It can show the controls but can't click. for example, TreeView can show correct, but can't choose the nodes, can't use right click menu. and RadMenu has the same problem. Should I change any setting in IIS 7 or in web.config

2 Answers, 1 is accepted

Sort by
0
Veenu
Top achievements
Rank 1
answered on 17 Mar 2010, 02:54 PM
Hi,

I've a similar problem but aggrevated to some extent.
On opening the application when hosted on II7 (when it works fine with IIS6),
Clicking on RadPanelBar doesn't work; I can't open RadMenu; RadTreeView and RadGrid is also not loaded.
There are some JS error reported saying 'Object expected'

Any help would be appreciated.

Thanks and Regards,
Veenu Munjal
0
Veenu
Top achievements
Rank 1
answered on 17 Mar 2010, 08:23 PM
Hi,

I found the solution after searching through the Telerik Forum and trying out different settings.
The major issue was that the Telerik Handlers need to be added to the httphandler section in web.config when it is to be used with IIS7. I copied the sections from my web.config for reference! :)

        <httpHandlers> 
            <remove path="*.asmx" verb="*"/>  
            <add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>  
            <add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>  
            <add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>  
            <!-- Telerik-specific Keys -->
            <add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI" /> 
            <add verb="*" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"></add> 
            <add verb="*" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"></add> 
            <add verb="*" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" /> 
            <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" /> 
        </httpHandlers> 
    <handlers> 
      <remove name="ScriptHandlerFactory"/>  
      <remove name="ScriptHandlerFactoryAppServices"/>  
      <remove name="ScriptResource"/>  
      <remove name="WebServiceHandlerFactory-Integrated"/>  
      <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"/>  
      <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="ScriptResource.axd_GET,HEAD" path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode,runtimeVersionv2.0"/>  
      <add name="*_AppService.axd_*" path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode,runtimeVersionv2.0"/>  
      <add name="*.asmx_*" path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode,runtimeVersionv2.0"/>  
      <add verb="*" name="Telerik.RadUploadProgressHandler" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI" /> 
      <add verb="*" name="Telerik.Web.UI.DialogHandler" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"></add> 
      <add verb="*" name="Telerik.Web.UI.SpellCheckHandler" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"></add> 
      <add verb="*" name="Telerik.Web.UI.ChartHttpHandler" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>  
    </handlers> 

Also, in case you face some issue related to JS errors on some controls, you may try setting this: 

xhtmlConformance mode="Transitional"

 

 

I was working with Legacy Code so faced issues with Editor-Dialogs, which all got working after switching this setting.

Last, but not the least, following can also lead you out of some of your troubles:
 
<location path="Telerik.Web.UI.WebResource.axd">  
   <system.web> 
     <authorization> 
       <allow users="*"/>  
     </authorization> 
   </system.web> 
 </location> 

I hope this helps you out as well. Happy Coding!

Best Regards,
Veenu Munjal
Tags
General Discussions
Asked by
Winkey
Top achievements
Rank 1
Answers by
Veenu
Top achievements
Rank 1
Share this question
or