【问题标题】:AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referencedAjaxControlToolkit 需要 ASP.NET Ajax 4.0 脚本。确保引用了正确版本的脚本
【发布时间】:2012-04-16 10:56:51
【问题描述】:

最近我开始研究 VS2010,我正在参考 AjaxControlToolkit 4.1.51116.0。 我遇到了运行时错误 -

Microsoft JScript 运行时错误:AjaxControlToolkit 需要 ASP.NET Ajax 4.0 脚本。确保脚本的正确版本是 参考。如果您使用的是 ASP.NET ScriptManager,请切换到 AjaxControlToolkit.dll 中的 ToolkitScriptManager。

我看到很多问题因相同的错误而浮动,但建议的解决方案是使用 'ToolkitScriptManager' 而不是 'ScriptManager' 对我不起作用。 在这方面的任何帮助将不胜感激。

【问题讨论】:

    标签: ajax asp.net-ajax asp.net-4.0 ajaxcontroltoolkit


    【解决方案1】:

    确保将<asp:ScriptManager /> 标记替换为AjaxControlToolkit 程序集的命名空间(例如atk):<atk:ToolkitScriptManager />。这对我有用。

    【讨论】:

    • 不工作,为什么?
    • @LucasRodriguesSena 我建议你问自己的问题
    • 标签应该支持 Ajax 4.0 - .net4.0/.net4.5,因为它不起作用,似乎存在某种配置问题。恢复到 不能解决配置问题。出现了许多报告相同问题的帖子。显然,随着越来越多的开发人员转向 VS2012。
    猜你喜欢
    • 1970-01-01
    • 2013-10-23
    • 1970-01-01
    • 2014-09-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-05-14
    相关资源
    最近更新 更多