65.9K
CodeProject is changing. Read more.
Home

Solving 'Activate Features' error

emptyStarIconemptyStarIconemptyStarIconemptyStarIconemptyStarIcon

0/5 (0 vote)

Jan 8, 2013

CPOL
viewsIcon

12959

Solving the 'Activate Features' error.

Problem 

I was trying to make a new custom ListDefinition that's not based on content type, and when I tried to deploy, it gave the following error:

Error occurred in deployment step 'Activate Features': Cannot complete this action.  line 0 , column 0. 

Solution 

Turns out you have to remove these lines, in the ListDefinition schema file:

<ContentTypes>
  <ContentTypeRef ID="0x01">
    <Folder TargetName="Item" />
  </ContentTypeRef>
  <ContentTypeRef ID="0x0120" />
</ContentTypes>