Getting this working with ASP.NET AJAX 3.5

2 posts, 0 answers
  1. Greg
    Greg avatar
    6 posts
    Member since:
    Dec 2007

    Posted 04 Feb 2009 Link to this post

    Hey all,

    I'm trying to get this working with ASP.NET AJAX 3.5 and am having a heck of a time.  The error I'm currently getting is:

    Exception Details: System.InvalidCastException: Unable to cast object of type 'System.Web.Configuration.ScriptingScriptResourceHandlerSection' to type 'System.Web.Configuration.ScriptingScriptResourceHandlerSection'.

    This looks like it should be a problem with dependent assembly binding redirects, but as far as I can tell I have them all in there and I've checked, double-checked, and triple-checked that I set everything up correctly and am lost as to why I'm getting this error.

    I put a copy of my web.config file on my personal server at:
        http://www.andora.us/SPTelerikHelp/webconfig.xml

    On my master page, I added two lines of code:
      
    At the top:

     

    On my master page, I added two lines of code:  

    <%@ Register TagPrefix="telerik" Assembly="Telerik.Web.UI, Version=2008.3.1314.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" %>

     

     

     

    Just under the opening <FORM> tag:

     

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
     

     

     

     

     

     

     

    Any help would be great, thanks!!

    Greg Andora

  2. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 05 Feb 2009 Link to this post

    Hi Greg,

    Try to add this to the web.config <runtime><assemblyBinding> section.

    <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> 


    I hope this helps.


    Regards,
    Stanimir
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

Back to Top