This is one of the funniest bugs I came across ever; Your layout pages are getting an HTML Head tag at the end of the page just after the content closing tag. This puzzled me for an entire day and the solution is to simply maintain the camel case of the server side tags. For example. the following will fail:<asp:content …>

</asp:content>

 

To correct it:

<asp:Content …>

</asp:Content>

This is a sample head tag that is added:

<html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"><head>
<META name="WebPartPageExpansion" content="full">
<!–[if gte mso 9]><xml>
<mso:CustomDocumentProperties>
<mso:PublishingPreviewImage msdt:dt="string"></mso:PublishingPreviewImage>
<mso:ContentType msdt:dt="string">Page Layout</mso:ContentType>
<mso:MasterPageDescription msdt:dt="string"></mso:MasterPageDescription>
<mso:PublishingAssociatedVariations msdt:dt="string"></mso:PublishingAssociatedVariations>
<mso:PublishingHidden msdt:dt="string">0</mso:PublishingHidden>
<mso:PublishingAssociatedContentType msdt:dt="string">;#ContentType;#0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF39;#

</mso:PublishingAssociatedContentType>
</mso:CustomDocumentProperties>
</xml><![endif]–>
<title>News Article</title></head>

Advertisements