SharePoint Page layout throws “Parser Error Message: Only Content controls are allowed directly in a content page that contains Content controls” during provisioning.
October 7, 2009 by Edward Wilde
If you see something like this:
Line 42: </WebPartPages:WebPartZone>
Line 43: </asp:content>
Line 44: <html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"><head>
Line 45: <!--[if gte mso 9]><xml>
Line 46: <mso:CustomDocumentProperties>
|
This could be (it was in my case) caused by a very obscure behaviour of the web part manager during provisioning. Namely it doesn’t like your <asp:Content tags to be defined in lower case.
Wrong: Error prone page layout
</p>
<p><asp:content…</p>
<p>
Correct
</p>
<p><asp:Content…</p>
<p>
Yet another SharePoint time waster!
Advertisement
Like this:
Be the first to like this post.
Thanks for this post, I came across this exact error!
http://www.onlysharepoint2010.com/2011/06/parser-error-in-sharepoint-2010.html
The above link might be helpful !!!