While working with SharePoint Master page or Custom page design, we might face this error sometimes, “This page allows a limit of 200 controls, and that limit has been exceeded”.

Cause for this error

If you are using too many controls in single page (or master page), you will face this error because SharePoint web application allows 200 controls limit by default. This means, you have reached that threshold value (200+ controls) in your page.

Error Sample:

Resolution

Real source of error is default webconfig of the web applcation as shown below:

<SafeMode MaxControls=”200″ CallStack=”false” DirectFileDependencies=”10″ TotalFileDependencies=”250″ AllowPageLevelTrace=”false”>

Step 1: Explore the webconfig file. Best way to explore from IIS of SharePoint Web Application ( or located in inetpub)

Step 2: Take backup of webconfig (Important, in anything happens you can restore)

Step 3: Find the tag

<SafeMode MaxControls=”200″ CallStack=”false” DirectFileDependencies=”10″ TotalFileDependencies=”250″ AllowPageLevelTrace=”false”>

Step 4: Increase the MaxControls value. (In my case, I increased to 1000).

Note: However, if there is limitation to do so as there are many large corporatations who do not allow their IT departments in such scenario. Rather, you should take out some of your controls to maintain the threshold value, do IIS reset and your will starts working.

Cheers!!

By Rijwan Ansari

Research and Technology Lead | Software Architect | Full Stack .NET Expert | Tech Blogger | Community Speaker | Trainer | YouTuber. Follow me @ https://rijsat.com Md Rijwan Ansari is a high performing and technology consultant with 10 plus years of Software Development and Business Applications implementation using .NET Technologies, SharePoint, Power Platform, Data, AI, Azure and cognitive services. He is also a Microsoft Certified Trainer, C# Corner MVP, Microsoft Certified Data Analyst Associate, Microsoft Certified Azure Data Scientist Associate, CSM, CSPO, MCTS, MCP, with 15+ Microsoft Certifications. He is a research and technology lead in Tech One Global as well as leading Facebook community Cloud Experts Group and SharePoint User Group Nepal. He is a active contributor and speaker in c-sharpcorner.com community, C# Corner MVP and his rank at 20 among 3+ millions members. Additionally, he is knee to learn new technologies, write articles, love to contribute to the open-source community. Visit his blog RIJSAT.COM for extensive articles, courses, news, videos and issues resolution specially for developer and data engineer.

2 thoughts on “SharePoint | This page allows a limit of 200 controls, and that limit has been exceeded”

Leave a Reply

Your email address will not be published. Required fields are marked *