Only Content controls are allowed directly in a content page that contains Content controls SharePoint 2013 Page Layout

InfoPath alternatives for form designing SharePoint

Recently I got an error while applying a page layout in a page in a SharePoint 2013 site. The error coming was

Sorry, something went wrong
An error occurred during the processing of /SiteURL/_catalogs/Pages/default.aspx. Only Content controls are allowed directly in a content page that contains Content controls.

You can also read:
– Export selected record to excel in SharePoint 2013 using JavaScript client object model

– Query User Profile Service for Multiple Users in SharePoint Using SPServices

– Enable SharePoint 2013 Server Publishing Feature using PowerShell

The error came for a particular page layout. If I change to that page layout then the error comes.

Solution:
I checked out the page layout and find out that

<asp:content ContentPlaceholderID=”PlaceHolderPageTitle” runat=”server”>

Here the problem was with “c” in the <asp:content. After I change to capital “C” it started working.

<asp:Content ContentPlaceholderID=”PlaceHolderPageTitle” runat=”server”>

Hope this will be helpful.

Similar SharePoint 2013 Tutorials

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →

Leave a Reply