Sharepoint linq实体类生成错误 [英] Sharepoint linq entity classes generation error
问题描述
当运行spmetal.exe为SP生成实体类时,它给出错误----
功能a95fc532-8b39-49a4-b044-f9209c26d794未安装列表模板这个农场。无法完成此操作。
我想使用LINQ查询SP列表。所以在cmd提示符下我移动到C:\Program Files \Common Files \ Micropros Shared \ Web Server Extensions \\\\\\\\\\\\\\\\\然后我运行命令SPMetal.exe / web:http:// YOURSITE /code:SiteEntities.cs
它给出了错误 - 功能a95fc532-8b39-49a4-b044-f9209c26d794的列表此服务器场中未安装模板。无法完成此操作。
我在wss内容数据库中找到了带有上述guid的功能。 db中找不到该功能。
我使用powershell禁用了该功能它没有给出任何错误,当我再次尝试启用/激活它时给出错误 - 功能不是农场级功能而不是在网站级别找到。
我们的帮助将不胜感激。
when running spmetal.exe for generating entity classes for SP it is giving error----
feature "a95fc532-8b39-49a4-b044-f9209c26d794" for a list template is not installed in this farm. could not complete this operation.
i want to query the SP list using LINQ. so in cmd prompt i moved to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN. then i ran the command SPMetal.exe /web:http://YOURSITE /code:SiteEntities.cs
it gave error -- feature "a95fc532-8b39-49a4-b044-f9209c26d794" for a list template is not installed in this farm. could not complete this operation.
I found the feature with the above guid in wss content database. the feature is not found in db.
I disabled the feature using powershell it not gave any error, when again i try to enable/activate it gave error -- feature is not a farm level feature and not found in site level.
Your help would be appreciated.
推荐答案
问题在于spmetal。 exe不使用wss内容数据库,它使用的是其他服务器场数据库,其中包含许多列表模板,但没有为此服务器场中未安装的列表模板提供a95fc532-8b39-49a4-b044-f9209c26d794功能。他想使用该功能,但它不在列表列表中。
The problem is that spmetal.exe is not using the wss content database, it is using the other farm database, which has a number of list templates, just not feature "a95fc532-8b39-49a4-b044-f9209c26d794" for a list template that is not installed in this farm. He wants to use that feature, but it is not on the list of lists.
这篇关于Sharepoint linq实体类生成错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!