我正在学习如何在 Visual Studio 10.0.40219.1 SP1Rel、.NET 4.0.30319 SP1Rel 的代码隐藏中使用 VB.NET 使用 Ajax 控制工具包。我去过许多网站并使用 AnimationExtender 尝试了很多代码。工具包附带的示例可以完美运行,但在
http://localhost:1049/
这与我的“在浏览器中查看代码”网址不同:
http://localhost:4258/
当我将 url 更改为我的时,出现此错误:
Could not load file or assembly 'AjaxMin, Version=4.97.4951.28478, Culture=neutral, PublicKeyToken=21ef50ce11b5d80f' or one of its dependencies. The system cannot find the file specified.
安装说明中没有提到这一点。我无法运行我用来学习如何使用 AnimationExtender 的页面。我很茫然,我在 Google 或这里都找不到这样的东西。
谢谢!
最佳答案
Matty 关于检查示例项目的建议让我回到了解压缩它的目录,然后检查了文件 AjaxControlToolkit.Binary.NET40.zip,其中包含 AjaxMin.dll 文件。我让管理员将文件移动到 C:\Program Files\Microsoft Visual Studio 10.0\VB\Bin(我不知道那个目录是否重要,它对我有用),然后在 VS 中添加 DLL 作为对项目的引用.我得到的几个错误与 ajaxmin 无关。
关于ajaxcontroltoolkit - Ajax 控件工具包和 Ajaxmin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18341587/