ajax控制工具包&共享点 2010
我试图在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的 Web 部件似乎在
@Register
指令中引用了 AJAX Control Toolkit 的版本 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 yourweb.config
, you should register the toolkit in your web part using its assembly name and namespace only, e.g.:查看这篇博客文章,其中解释了如何将 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/