如何解决Ajax Toolkit错误 [英] How To resolve Ajax Toolkit Error

查看:55
本文介绍了如何解决Ajax Toolkit错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio 2005,并在我的网站中使用Ajax.
我在运行应用程序时遇到以下错误.

错误程序集''AjaxControlToolkit,Version = 3.0.30512.19519,Culture = neutral,PublicKeyToken = 28f01b0e84b6d53e''使用``System.Web.Extensions,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35''比参考程序集``System.Web.Extensions,Version = 1.0.61025.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35''更高的版本

为了解决此错误,我安装了ASPAJAXExtSetup.msi软件,但仍给出上面相同的Error.
如果有人给我确切的解决方案对我来说很重要

感谢进阶
Ravi Sharma

I am use the Visual Studio 2005 and use Ajax in to my Website.
I face following Error when i Run the Application.

Error Assembly ''AjaxControlToolkit, Version=3.0.30512.19519, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e'' uses ''System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'' which has a higher version than referenced assembly ''System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35''

For the resolving this Error I install the ASPAJAXExtSetup.msi software but still give Same above Error.
Its Greatful for me if anybody give me Exact Solution

Thanks in Advanced
Ravi Sharma

推荐答案

对我有用的解决方案是...
1)我将解决方案中所有项目的目标框架更改为3.5
2)清理解决方案中的所有项目
3)重建完整的解决方案
4)打开web.config文件并删除内容
The solution worked for me is...
1) I changed target framework to 3.5 in all the projects in my solution
2) Clean all the projects in the solution
3) Rebuild the full solution
4) Open the web.config file and remove the content
<runtime >
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35">
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0">
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35">
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0">
</dependentAssembly>
</assemblyBinding>
</runtime>


并保存.
5)现在关闭Visual Studio,然后再次打开,清理完整的解决方案并重新构建


and save.
5) Now close the Visual Studio and open again, clean the full solution and rebuild


http://prgramminghelp.blogspot.com/2011/02/how-to- resolve-error-assembly.html [ ^ ]
http://forum.umbraco.org/yaf_postst8063_Cant-use-AjaxcontrolToolkit-v30xxxxx0-in-the-Umbraco-v400.aspx[^]

http://prgramminghelp.blogspot.com/2011/02/how-to-resolve-error-assembly.html[^]





我认为您遇到错误,原因是您安装了Version = 3.5.0.0
如错误所示.建议您安装准确版本为Version = 3.0.30512.19519的AjaxControlToolkit.您也可以尝试Version = 3.0.20229.0

这可能是使用较低版本的Visual Studio 2005的原因...

您可以在google上指定要下载的版本...

AjaxControlToolkit.dll 版本= 3.0.30512.19519

在您的客户代码中,您必须注册它...
例如:
Hi,


I think you encounter an error cause you installed Version=3.5.0.0
as indicated on your error. Advised you to install the AjaxControlToolkit with exact version that is Version=3.0.30512.19519. You may also try Version=3.0.20229.0

This maybe cause of using the visual studio 2005 which is lower version...

You may google it specifying the version you want to download...

AjaxControlToolkit.dll Version=3.0.30512.19519

In your client code you must register it...
as example:
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>



希望这可以帮助...

问候



Hope this could help...

Regards,


这篇关于如何解决Ajax Toolkit错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆