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 a ContentEditorWebPart in visual studio 2010. I have altered the content and added some html. When i deploy this it works fine.

When i add a hyperlink to the content the deployment fails. It only happens when hyperlinks are included in the content.

Why is this?

share|improve this question
up vote 0 down vote accepted

If I understand correctly you tries to provision a CEWP by feature. In this case I think you should escape some symbols in your web part definition. The best way, I think, is to add CEWP to the page, add html manually, and do export web part action. After this you can download exported web part to your PC and open file in visual studio. In this file you can find out correct content that should be included in provision.

share|improve this answer

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.