Click here to Skip to main content
15,886,019 members
Articles / .NET
Tip/Trick

Solving 'Activate Features' error

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
5 Feb 2013CPOL 12.8K   1  
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:

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

License

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


Written By
Software Developer
Egypt Egypt
Enthusiastic programmer/researcher, passionate to learn new technologies, interested in problem solving, data structures, algorithms, AI, machine learning and nlp.

Amateur guitarist/ keyboardist, squash player.

Comments and Discussions

 
-- There are no messages in this forum --