Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Quote:
Hi All,
I have a website on asp.net4.0. I wish to use Ajax Control ToolKit but it is giving compilation error
Quote:
Error 20 The type 'System.Web.UI.ExtenderControl' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'


I did following to install AjaxControl Toolkit
1) Installed NuGet
2) Installed AjaxControlToolKit using NuGet Console in Visual Studio 2010
Install-Package AjaxControlToolKit

Error comes as soon as i add
Quote:
<ajaxToolkit:ToolkitScriptManager runat="server" ID="ScriptManager1" />

Please help.
Posted
Comments
zyck 20-Feb-12 9:45am    
try to add a reference to assembly 'System.Web.Extensions'

1 solution

Hi,

Ensure that you have reference to System.Web.Extensions as your error says...
 
Share this answer
 
Comments
ranuec 22-Feb-12 10:00am    
Thanks Martin, this worked. For those who need detailed steps
1) right click references
2) click on "add new reference"
3) Select System.Web.Extensions

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900