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

Getting this working with ASP.NET AJAX 3.5

1 Answer 51 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 2
Greg asked on 04 Feb 2009, 07:20 PM
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

1 Answer, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 05 Feb 2009, 09:26 AM
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.
Tags
WebParts for SharePoint
Asked by
Greg
Top achievements
Rank 2
Answers by
Stanimir
Telerik team
Share this question
or