无法确定具有 ID 的功能的定义... - 未知 GUID
我正在开发一项功能来安装具有关联列表和列表实例的 WebPart。 部署该列表时,会记录以下消息:
Failed to determine definition for Feature with ID
'cdca545a-333a-4b3f-ba15-ac3cdbb12312'.
Skipping this feature for element querying consideration.
(为了清晰起见,添加了换行符)
我已阅读过各种博客上的文章,这些文章建议搜索功能以识别有问题的功能。 为了搜索 Sharepoint 12 目录,我下载了支持搜索的 grep 版本子目录,但是以下命令未能在我的开发 VM 或实时服务器上找到任何匹配项:
grep -S cdca545a-333a-4b3f-ba15-ac3cdbb12312 <path to \12\>
也没有:
grep -S -i cdca545a <path to \12\>
我的开发计算机由 Windows 2003 R2、Windows Sharepoint Service 3.0 SP1、Visual Studio 2008 和 STSDev 2008 组成。
目前该功能部署但列表无法实例化,我正在尝试解决日志文件噪音以找到问题的根源。
I am in the process of developing a Feature to install a WebPart with associated List and List Instance. On deployment of the list the following message is logged:
Failed to determine definition for Feature with ID
'cdca545a-333a-4b3f-ba15-ac3cdbb12312'.
Skipping this feature for element querying consideration.
(line breaks added for clarity)
I have read articles on various blogs that suggest searching through the Features to identify the offending feature. To search through the Sharepoint 12 directory I have downloaded a version of grep that supports searching subdirectories, however the following command failed to find any matches on either my Development VM or the Live server:
grep -S cdca545a-333a-4b3f-ba15-ac3cdbb12312 <path to \12\>
Nor does:
grep -S -i cdca545a <path to \12\>
My development machine consists of Windows 2003 R2, Windows Sharepoint Service 3.0 SP1, Visual Studio 2008 with STSDev 2008.
At present the feature deploys but the list can not be instantiated, and I am trying to work through the log file noise to get to the root of the problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以尝试枚举 SharePoint 场上已安装的功能定义。 以下是一些示例代码,用于打印每个已安装功能的功能 ID 和显示名称:
You could try enumerating the installed feature definitions on your SharePoint farm. Here's some sample code that prints the feature ID and display name for each installed feature:
我不确定,但问题可能与列表实例功能有关。
在功能的元素清单中,您可以定义属性“FeatureId”,该属性必须指向包含创建列表实例时要使用的列表定义的功能。
所以这里有两个可能的错误来源。
如果未定义此FeatureId,则该功能假定列表定义是在同一功能(列表实例功能)中定义的。 如果定义和实例有两个独立的功能,则可能会导致此错误。
正如我已经说过的,FeatureId 必须是定义要使用的列表定义的功能的 GUID。 也许您将此 GUID 替换为新生成的 GUID,假设这不是列表定义 feautre 的 FeatureId,而是列表实例本身在 MOSS 中创建时的标识符。
我自己从来没有遇到过这个问题,所以我只能猜测你的错误原因可能是什么。
也许这个 博客条目可能会帮助您进行进一步的调查。
I'm not sure, but the problem could be related to the list instance feature.
In the element manifest of the feature you can define the attribute "FeatureId" which have to point to the feature which contains the list definition to use when the list instance is created.
So here a two possible sources of error.
If this FeatureId isn't defined, the feature assumes that the list definition is defined within the same feature (list instance feature). If you have two separated features for the definition and the instance this might lead to this error.
As I already said the FeatureId has to be the GUID of the feature defining the list definition to use. Perhaps you replaced this GUID with a newly generated one, assuming that this not the FeatureId of the list definition feautre, but the identifier for the list instance itself when it is created within MOSS.
I never had this problem myself, so I could only guess what the reason for your error might be.
Perhaps this blog entry might help you on your further investigations.