Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 30-Aug-13 2:29am
v2
Comments
Nelek 30-Aug-13 8:07am    
Would you like to explain a bit more what happen? Adding the piece of the code triggering the error won't be bad.
mkkakarla 30-Aug-13 8:28am    
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.
The_Inventor 2-Sep-13 23:45pm    
I think he explained it the best he could the first time, as he just copied and pasted his first QA.

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900