Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a project that I have been using to deploy a custom content type. Recently i decided that I needed another content type that would inherit from the original one. I created a new element file, added it the original feature and attempted to deploy. At this point I was met with the following error:

Error occurred in deployment step 'Activate Features': A duplicate content type name "MNC Site Page" was found

Where MNC Site Page is my original content type. How should I go about deploying an inheriting content type from the same project?

I tried removing the original content type from the feature but SharePoint then started complaining that the parent content type did not exist.....

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

If your parent Content Type is already being used, it will not be removed when you do a Deactivate/Retract/Deploy/Activate cycle, as is done by Visual Studio. I think it's normal that SharePoint complains.

Try doing just an Update-SPSolution from the SP2010 Management Shell? Alternatively, package your 2nd content type in it's own feature and activate only that feature.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.