在MOSS 2007中找不到ajax扩展

时间:2009-05-08 03:57:26

标签: sharepoint

我在这里有两个问题:

1)我正在尝试在sharepoint中实现AJAX。    我修改了web.config,如下所述:

http://sharepoint.microsoft.com/blogs/mike/Lists/Posts/Post.aspx?ID=3

但我仍然收到以下错误:

未知的服务器标签'asp:ScriptManager'。在System.Web.UI.TagPrefixTagNameToTypeMapper.System.Web.UI.ITagNameToTypeMapper.GetControlType(String tagName,IDictionary attribs)    在System.Web.UI.MainTagNameToTypeMapper.GetControlType2(String tagName,IDictionary attribs,Boolean fAllowHtmlTags)    在System.Web.UI.MainTagNameToTypeMapper.GetControlType(String tagName,IDictionary attribs,Boolean fAllowHtmlTags)

2)其次,我试图在sharepoint中实现adrotator。我已经尝试安装SPAdrotator但是当我在“查询”部分中将图像库名称作为源时,我无法显示图像。

2 个答案:

答案 0 :(得分:1)

对于第1点:

您是否已将此程序集添加到GAC?:System.Web.Extensions,Version = 1.0.61025.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35

问题是它无法找到scriptmanager类,它告诉我程序集没有正确安装。如果它位于SharePoint网站的bin目录中,则需要从WSS_Minimal默认值更改信任级别(不推荐)。

答案 1 :(得分:1)

您使用的是.NET 2.0还是3.5?为2.0下载的扩展名与3.5中包含的扩展名相同,但web.config中的引用将不同。

获取正确细节的最简单方法是在visual studio中创建一个新的ajax项目,并从为您创建的web.config中复制位。

2应该作为一个单独的问题发布,但它可能与内部和显示名称有关。