将.net FrameWork 3.5的项目迁至2.0时,由于需要与其他成员整合,在Web.Config中报如上错误,重新添加选择项:“AjaxControlToolkit.dll”即可。
在网上找到如下操作说明,试了试,也可以,加了些截图大家共享
在vs2005中使用AjAX:
当你使用Visual Studio 2005来开发关于AJAX的内容时,首先需要安装Ajax Control Toolkit,你可以在这里下载:
http://www.codeplex.com/AtlasControlToolkit/Release/ProjectReleases.aspx?ReleaseId=1425
http://www.codeplex.com/AtlasControlToolkit/Release/ProjectReleases.aspx?ReleaseId=1425
![](http://yeziwenwen.blog.51cto.com/attachment/200907/200907311249009667519.jpg?x-oss-process=image/resize,w_1400/format,webp)
下载第一个,后解压缩,在
![](http://yeziwenwen.blog.51cto.com/attachment/200907/200907311249009735809.jpg?x-oss-process=image/resize,w_1400/format,webp)
第一个文件夹中,安装"AjaxControlExtender.vsi"。
![](http://yeziwenwen.blog.51cto.com/attachment/200907/200907311249009877462.jpg?x-oss-process=image/resize,w_1400/format,webp)
![](http://yeziwenwen.blog.51cto.com/attachment/200907/200907311249009945286.jpg?x-oss-process=image/resize,w_1400/format,webp)
在安装后,在第四个文件夹SampleWebSite\Bin下找到AjaxControlToolkit.dll,然后通过“选择项”加载后,很可能还会得到以下错误:
从程序集“...\AjaxControlToolkit.dll”加载类型时出错
“未能加载文件或程序集“System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”或它的某一个依赖项。系统找不到指定的文件。”
或
... Could not load file or assembly 'Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
点击下载 ASP.NET 2.0 AJAX Extensions 1.0
http://www.microsoft.com/downloads/details.aspx?FamilyID=ca9d90fa-e8c9-42e3-aa19-08e2c027f5d6&displaylang=en
从程序集“...\AjaxControlToolkit.dll”加载类型时出错
“未能加载文件或程序集“System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”或它的某一个依赖项。系统找不到指定的文件。”
或
... Could not load file or assembly 'Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
点击下载 ASP.NET 2.0 AJAX Extensions 1.0
http://www.microsoft.com/downloads/details.aspx?FamilyID=ca9d90fa-e8c9-42e3-aa19-08e2c027f5d6&displaylang=en
自动安装后,再次重新加载AjaxControlToolkit.dll,就会顺利通过。
本文转自叶子文文博客51CTO博客,原文链接http://blog.51cto.com/leafwf/185830如需转载请自行联系原作者
叶子文文