AjaxControlToolkit 7.0123打破了VS2012 Web应用程序项目

前端之家收集整理的这篇文章主要介绍了AjaxControlToolkit 7.0123打破了VS2012 Web应用程序项目前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我有一个运行良好的VS2012 Web应用程序,直到我添加了最新的AjaxControlToolkit(7.0123).最初,我发现安装破坏了UpdatePanel的行为 – 而在我可以在异步回发之后刷新页面而不重复操作之前我发现安装后刷新会重复上一次操作(我想回发后)不再异步).

然后我注意到,在过去的某个时候,我已经注释了一些添加到新的ASP.NET Web窗体应用程序的默认JavaScript文件,所以我尝试重新添加它们.这导致了一个异常:

‘MsAjaxBundle’ is not a valid script name. The name must end in
‘.js’.

然后我尝试替换默认的< asp:ScriptManager ... />与< ajaxControlToolkit:ToolkitScriptManager ... />这导致了一个新的例外

Could not load file or assembly ‘System.Web’ or one of its
dependencies. The system cannot find the file specified.

为了理智,我创建了一个新的ASP.NET Web窗体应用程序(VS2012,Update 2)并运行它.没有错误.使用“nuget”,然后我添加了AjaxControlToolkit v7.0123(最新版本).再次运行应用程序,我再次获得原始异常:

‘MsAjaxBundle’ is not a valid script name. The name must end in
‘.js’.

我又一次替换了< asp:ScriptManager ... />与< ajaxControlToolkit:ToolkitScriptManager ... />再一次这导致了

Could not load file or assembly ‘System.Web’ or one of its
dependencies. The system cannot find the file specified.

任何人都可以解释我还需要做些什么才能解决这个问题?在添加工具包时,我无法找到任何需要手动更改的文档.

谢谢,

@H_404_33@
@H_404_33@
http://stephenwalther.com/archive/2012/09/20/september-2012-release-of-the-ajax-control-toolkit.aspx找到答案(总是在发布问题之后)

>替换< asp:ScriptManager ... />与< ajaxControlToolkit:ToolkitScriptManager ... />是正确的
>需要删除对MsAjaxBundle的引用
>需要从脚本引用中删除Assembly =“System.Web”

这修复了异常(在新项目和原始项目中).

但是,它不能解决UpdatePanel不再异步回发的问题.我将此提出来作为一个新问题.

@H_404_33@ 原文链接:https://www.f2er.com/ajax/160014.html

猜你在找的Ajax相关文章