Parser Error Message: Only Content controls are allowed directly in a content page that contains Content controls

If you get this nasty little sucker as an error message on your MOSS installation when you´re trying to add a new page based on a page layout:

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:

Line 102:

Line 103:</asp:content>

Line 104:<html xmlns:mso=”urn:schemas-microsoft-com:office:office” xmlns:msdt=”uuid:C2F41010-65B3-11d1-A29F-00AA00C14882″><head>

Line 105:<!–[if gte mso 9]><xml>

Line 106:<mso:CustomDocumentProperties>

…chances are you have a <asp:content> tag instead of <asp:Content> in your page layout (aspx file). Worked for me at least.

  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: