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

查看:22
本文介绍了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 部件在 @Register 指令中引用了 AJAX 控件工具包的 3.5.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控制工具包&amp;共享点2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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