ajax控制工具包&共享点 2010

发布于 2024-09-27 17:07:58 字数 1274 浏览 5 评论 0原文

我试图在 sharepoint 2010 中使用 ajax 控制工具包,但出现一些错误。我发现该工具包的最新版本不适用于 SP2010,因此我下载了 http://ajaxcontroltoolkit.codeplex.com/releases/view/33804 然后我修改了 web.config,添加了以下内容:

<assemblies>
  ....
  <add assembly="AjaxControlToolkit, Version=3.0.30930.28736, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" />

我将 dll 添加到引用中(在工具箱中创建一个新选项卡并浏览 dll 文件),并开始在我的 Web 部件中使用 ajax 控件。它部署没有问题,但是当我运行我的网页时,我收到此错误:

Server Error in '/' Application.
--------------------------------------------------------------------------------

Parser Error 
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 

Parser Error Message: Could not load file or assembly 'AjaxControlToolkit, Version=3.5.40412.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Which point to the first line of my webpart ascx file

有什么想法吗?

I was trying to use ajax control toolkit in sharepoint 2010, but i get some errors. I found that the last release of the toolkit doesn't work with SP2010, so i downloaded the version 30930 found at http://ajaxcontroltoolkit.codeplex.com/releases/view/33804
Then i modified the web.config adding this:

<assemblies>
  ....
  <add assembly="AjaxControlToolkit, Version=3.0.30930.28736, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" />

I added the dll to the references (creating a new tab in the toolbox and browsing the dll file) and started using the ajax controls in my web part. It deploys without problems, but when i run my webpage i get this error:

Server Error in '/' Application.
--------------------------------------------------------------------------------

Parser Error 
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 

Parser Error Message: Could not load file or assembly 'AjaxControlToolkit, Version=3.5.40412.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Which points to the first line of my webpart ascx file

Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

少女情怀诗 2024-10-04 17:07:58

您的 Web 部件似乎在 @Register 指令中引用了 AJAX Control Toolkit 的版本 3.5.40412.0。由于您想要使用版本 3.0.30930.28736,并且在 web.config 中正确引用了该版本,因此您应该仅使用其程序集名称和命名空间在 Web 部件中注册该工具包,例如:

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"
    TagPrefix="ajax" %>

It looks like your web part references version 3.5.40412.0 of the AJAX Control Toolkit in an @Register directive. Since you want to use version 3.0.30930.28736, and since that version is properly referenced in your web.config, you should register the toolkit in your web part using its assembly name and namespace only, e.g.:

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"
    TagPrefix="ajax" %>
圈圈圆圆圈圈 2024-10-04 17:07:58

查看这篇博客文章,其中解释了如何将 Ajax 控件工具包与 SharePoint 2010 结合使用 http://www.inspiredbytechnology.com/index.php/2010/10/28/using-the-ajax-control-toolkit-with-sharepoint -2010年/

Take a look at this blog article which explains how to use the Ajax Control Toolkit with SharePoint 2010 http://www.inspiredbytechnology.com/index.php/2010/10/28/using-the-ajax-control-toolkit-with-sharepoint-2010/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文