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

Docking Error : Scriptmanager 'System.Web.Configuration.ScriptingScriptResourceHandlerSection' to type 'System.Web.Configuration.ScriptingScriptResourceHandlerSection'.

1 Answer 78 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Colin
Top achievements
Rank 1
Colin asked on 29 Jan 2010, 12:26 PM

Hello
I am trying to add dock control to my web page.My web page has a vald asp.net 3.5 scriptmanager. but it has started to give this error :
The control with ID 'RadDockZone1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.

I am pretty sure there is a scriptmanager on the page.I tired to set RegisterWithScriptManager="false" property and try again.But  after that ,it throwed that error 


Unable to cast object of type 'System.Web.Configuration.ScriptingScriptResourceHandlerSection' to type 'System.Web.Configuration.ScriptingScriptResourceHandlerSection'.


I searched internet ,it was suggested  to change webconfig ajax part like this to solve this problem :

   <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
       <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
      </dependentAssembly>

      <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
      </dependentAssembly>  
    </assemblyBinding>
  </runtime>


I did it ,but it did not work still same error given ,any idea ?

Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 03 Feb 2010, 02:09 PM
Hi,

RadDockZone is AJAX enabled control and requires a ScriptManager on the page. Can you please test the following page in your website and see if you are getting the same error?

 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
        <telerik:RadDockLayout ID="RadDockLayout1" runat="server">
            <telerik:RadDockZone ID="RadDockZone1" runat="server" MinHeight="300px" Width="300px">
                <telerik:RadDock ID="RadDock1" runat="server" Width="300px" Title="RadDock-Title">
                    <ContentTemplate>
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        CONTENT
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                    </ContentTemplate>
                </telerik:RadDock>
            </telerik:RadDockZone>
        </telerik:RadDockLayout>
    </div>
    </form>
</body>
</html>

In case the problem persists, please send us the web.config file of the WebSite, and we will try to find a solution to the issue.


Regards,
Pero
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
Dock
Asked by
Colin
Top achievements
Rank 1
Answers by
Pero
Telerik team
Share this question
or