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.
ack! Mismatched Closing Tags caused by Case-Sensitivity due to lack of caffeine...this is the kind of errors that should've been picked up by the Editor. No squiggly red lines eh? :)
the client is still on VS2005 for this one. no squiggly red lines I'm afraid.
https://www.onlysharepoint2010.com/2011/06/parser-error-in-sharepoint-2010.html might be helpful