Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Ajax
hi all,
when i am using Rating in .net 3.5 , i am getting the following errors
Could not load type 'System.Web.UI.ScriptReferenceBase' from assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
here is my design coding:
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Ajax Rating</title>
</head>
<body>
<form id="form1" runat="server">
<%--<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>--%>
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always" ChildrenAsTriggers="True">
<ContentTemplate>
<ajaxToolkit:Rating runat="server" ID="Rating1"
MaxRating="5"
CurrentRating="2"
CssClass="ratingStar"
StarCssClass="ratingItem"
WaitingStarCssClass="Saved"
FilledStarCssClass="Filled"
EmptyStarCssClass="Empty" AutoPostBack="True" OnChanged="Rating1_Changed">
</ajaxToolkit:Rating>
<asp:Label ID="labelCaption1" runat="server" Text="Selected value: " />
<asp:Label ID="labelValue1" runat="server" Text=""></asp:Label>
</ContentTemplate>
</asp:UpdatePanel>
</form>
please help me
Thanks
tvn
Posted 11-Aug-10 22:02pm
Edited 12-Aug-10 0:55am
v2
Comments
E.F. Nijboer at 12-Aug-10 6:58am
   
Please use pre tags for appropriate pieces only and avoid using txtspk.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Change:
<ajaxtoolkit:toolkitscriptmanager id="ScriptManager1" runat="server" xmlns:ajaxtoolkit="#unknown" />
 
To:
<asp:scriptmanager id="ScriptManager1" runat="server" xmlns:asp="#unknown" />
 
Check how you register the assembly, must be like:
<![CDATA[<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>]]>
 
The real fix is to install .net 3.5 sp1 and can be found here (Ajax Control Toolkit expects a .net 3.5 SP1 runtime environment):
 
http://www.microsoft.com/downloads/details.aspx?familyid=ab99342f-5d1a-413d-8319-81da479ab0d7&displaylang=en[^]
 
Good luck!
  Permalink  
Comments
hiren soni at 9-Mar-12 6:12am
   
hi....I have the same problem and I have just upgraded to framework 4. Do you think it will work or i must install 3.5 sp1? Because even after upgrading it is not working..
E.F. Nijboer at 9-Mar-12 11:01am
   
Try removing the ajax toolkit and then (re)add reference to the project.
bhimsenpardeshi at 12-Mar-12 3:22am
   
i have already install .net 3.5 sp1 then also, i am getting this error
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Microsoft .NET Framework 3.5 Service Pack 1
 
once u reach to above link u can download dotnetfx35setup.exe and install and try
  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web04 | 2.8.141022.2 | Last Updated 23 May 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100