SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have this project with custom field for a content type.

When I deploy the first time after creating the new field everything is fine. Once i retract the solution my field is the only one left on the site, it wont retract. When i publish after that i get this error

"The field with Id {1ef18d86-3fe6-4c8c-b22a-377c2e98c17d} defined in feature {03118f5c-a57b-40f8-b908-c9c8d3174f01} was found in the current site collection or in a subsite"

And a warning saying pretty much the same thing.

share|improve this question
up vote 0 down vote accepted

This sometimes happens in Visual Studio when using VS to deploy (and redeploy) declarative content types to a SharePoint site. I’ve seen it happen most often when deploying List Definitions and List Instances. There are a variety of steps out there to try to make it go away:

  1. Retract solution, close VS, restart VS, deploy solution.
  2. Deploy project, attempt to activate via UI, deactivate, retract, restart VS, deploy solution.
  3. Deploy, retract, deploy. Open Task Manager, kill VSSHostP4.

Deploying after this should be resolved.

share|improve this answer

When you've retracted it and it appears to still be there, can you actually click on it without getting any errors ?

Try running an iisreset /noforce after you've retracted it and before you deploy it again.

Also double check your schema.xml and elements.xml to make sure the GUIDs all match up with the field and the content type.


share|improve this answer
Yes i can delete it without any error and browse it. My guids are also fine unless they cant have capital letters and i do not have schema.xml in the project only the feature that deploys element.xml which has the field declarations and the content type that uses them. (using vs2010 guid generator) If the iis thing works will i be obligated to do this everytime i deploy ? – Dr.Denis McCracleJizz Feb 20 '12 at 17:24
Iis reset doesnt work. – Dr.Denis McCracleJizz Feb 20 '12 at 17:34
Do you have braces {} around your GUIDs ? – Ian Feb 22 '12 at 10:58

Your Answer


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.