Click here to Skip to main content
16,007,843 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have tried tab control of Ajaxtoolkit. Why i am getting the following error?
Exception Details: System.TypeLoadException: Could not load type 'System.Web.UI.ScriptReferenceBase' from assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:
[TypeLoadException: Could not load type 'System.Web.UI.ScriptReferenceBase' from assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.]
   AjaxControlToolkit.ToolkitScriptManager.OnResolveScriptReference(ScriptReferenceEventArgs e) in d:\hg\act\Server\AjaxControlToolkit\ToolkitScriptManager\ToolkitScriptManager.cs:276
   System.Web.UI.ScriptManager.RegisterScripts() +261
   System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) +117
   System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +2063008
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2247
Posted
Updated 10-Oct-10 22:28pm
v2

Please verify the version you have installed of AJAX extensions

You need to install the ajax toolkit for that, You can get that from the following link

http://www.asp.net/ajax/downloads/

After installing that, go the installed folder and you get the AjaxControlToolkit.dll and now you need to add the reference to this dll and add this
dll to the bin folder of the project.

Try to use regular ScriptManager instead of ToolkitScriptManager-control on page
 
Share this answer
 
Comments
venubabu k 11-Oct-10 5:01am    
i have tried i have installed ajax and then get .dll in bin but there is no use
then after i am getting that error what i sent. and one more thing i getting tag prefix as <asp:ajaxControlToolKit but i want to change that like
venubabu k 11-Oct-10 5:13am    
sir, i am using ajax version 3.5.0.0 and i have installed sp 2. yet i am unable to use ajax controls in my asp.net webpage
Server does not have 3.5 SP1 installed.

See here:

href="http://runtingsproper.blogspot.com/2010/03/could-not-load-type.html" target="_blank" title="New Window">^</a>]
<a href="http://runtingsproper.blogspot.com/2010/03/could-not-load-type.html">http://runtingsproper.blogspot.com/2010/03/could-not-load-type.html</a>[<a href="http://runtingsproper.blogspot.com/2010/03/could-not-load-type.html" target="_blank" title="New Window">^</a>]
 
Share this answer
 

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