5

Recently I started working on VS2010 and I am referencing AjaxControlToolkit 4.1.51116.0. I am getting below runtime error -

Microsoft JScript runtime error: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll.

I have seen many question floating for same error but the solution suggested is to use 'ToolkitScriptManager' instead of 'ScriptManager' is not working for me. Any help in this context would be greatly appreciated.

nitendra jain
  • 433
  • 4
  • 8
  • 16

1 Answers1

-2

Make sure you replace the <asp:ScriptManager /> tag with the namespace of your AjaxControlToolkit assembly (e.g. atk): <atk:ToolkitScriptManager />. That worked for me.

Dov
  • 15,530
  • 13
  • 76
  • 177
  • <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> Not working, why? – Lucas Rodrigues Sena Mar 28 '13 at 14:17
  • @LucasRodriguesSena I recommend you ask your own question – Dov Mar 28 '13 at 20:05
  • tag is supposed to be supported Ajax 4.0 - .net4.0/.net4.5, since it is not working there appears to be some sort of configuration issue. Reverting to is not the fix to the config problem. There are a number of posts appearing reporting this same issue. Apparently as more developers move to VS2012. – htm11h Feb 13 '14 at 14:18