Ajax控制工具包共享点2010 [英] ajax control toolkit & sharepoint 2010

查看:75
本文介绍了Ajax控制工具包共享点2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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" />

我将dll添加到引用中(在工具箱中创建新标签并浏览dll文件)并开始在我的Web部件中使用Ajax控件。它的部署没有问题,但是当我运行网页时,出现以下错误:

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)

哪个指向我的webpart ascx文件的第一行

Which points to the first line of my webpart ascx file

有什么想法吗?

推荐答案

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

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" %>

这篇关于Ajax控制工具包共享点2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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