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 am trying to display content in a formatted, custom page in SP10.

I created a content type, I'll call BobType, which uses "Page" as the parent (actually, i've tried it with "Enterprise Wiki Page" as well) and has one added field, Description.

Using SPD, I created a page layout based on Bobtype called BobTypeLayout which contains the Name, Description, Rollup Image, and Comments fields. I then checked it in and approved the file.

Next, I went to site administration | site libraries and lists | customize "Pages" and added BobType to the allowed list. I made it the default type.

Now, I head back to the main site and select site actions | new page and create BobTest. It returns the correct form for creating a new BobType. So far, everything seems to be going great.

After filling in the form with random data - about you know who - I click save and get the infamous, "An unexpected error has occurred."

ULS viewer on the server shows that I'm getting:

System.NullReferenceException: Object reference not set to an instance of an object.   
 at Microsoft.SharePoint.WebPartPages.WikiPageWebPartSaver.SaveWebPartsInRichText(SPWebPartManager wpmgr)    
 at Microsoft.SharePoint.WebControls.SPPageStateControl.EnsureItemSavedIfEditMode(Boolean forceSave, String overwriteCommandHandler, String discardChangesCommandHandler)    
 at Microsoft.SharePoint.WebControls.SaveAndStopEditCommandHandler.RaisePostBackEvent(String eventArgument)    
 at Microsoft.SharePoint.Publishing.Internal.WebControls.PublishingPageSaveAndStopEditHandler.BaseRaisePostBackEvent(String eventArgument)    
 at Microsoft.SharePoint.Publishing.Internal.WebControls.PublishingPageStateControl.RaisePostBackEventForPageRouting(String eventArgument, SPRibbonCommandHandler control, RaisePostBackEventDelegate raisePostBackEventDelegate)    
 at Microsoft.SharePoint.Publishing.Internal.WebControls.PublishingPageSaveAndStopEditHandler.RaisePostBackEvent(String eventArgument)    
 at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)    
 at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

I've been tweaking the procedure randomly for a couple hours but seem to get stuck at the same point each time. The only requred field on the content type is, Name, and it has a value.

Any suggestions on how to troubleshoot? I can provide more info if necessary.

Thanks in advance.

share|improve this question
The stack trace seems to reference the Wiki Pahe content type... Is that the case? Was the error any different when you used the "Page" content type as parent? – SPArchaeologist Jan 11 '12 at 7:57
Yes, the error was the same with Page. I tried a few options and did not remember where I left off. – bob Jan 11 '12 at 17:18
I have same issue. Any body can help me – LazyCatIT Mar 14 at 2:45

I find a link:

It's resolved my issue.

share|improve this answer

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

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.