Sharepoint 2007 Parser error on updating page layout
Recently I found a really odd Asp.net Parser error when updating a Sharepoint 2007 Page Type. After uploading the new aspx, I’m getting the following error:
Server Error in ‘/’ Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Only Content controls are allowed directly in a content page that contains Content controls.
Source Error:
... </asp:content> <html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"><head> <!--[if gte mso 9]><xml> <mso:CustomDocumentProperties> ...
So strangely enough I don’t have those html lines below </asp:content>. After scratching my head for a whole hour (and plenty of experimentations), I found that it’s caused by a typo. The opening content tag was using upper case C, while the closing was not.
<asp:Content … > // upper case 'C' </asp:content>
Took me a while to figure it out, so I thought I’d share it here.
About this entry
You’re currently reading “Sharepoint 2007 Parser error on updating page layout,” an entry on Ronald Widha
- Published:
- 15.05.10 / 3pm
- Category:
- Articles

View Comments
Jump to comment form | comments rss [?] | trackback uri [?]