SharePoint 2007 - This page allows a limit of 200 controls, and that limit has been exceeded

Hi,

I was trying to load a user control using a smartpart and the following error showed up:

SharePoint 2007 - This page allows a limit of 200 controls, and that limit has been exceeded.

Please let me know, if anyone has encountered same error.

Thnks,

pp

March 26th, 2007 12:45am

The obvious question is do you have more than 200 controls? Perhaps you have been playing around a lot with the layout of the page and just closed the web parts rather than deleting them?
Free Windows Admin Tool Kit Click here and download it now
March 26th, 2007 12:33pm

I am having the same problem. Is there a setting I need to correct somewhere. I can't imagine a simple form and two data views being more than 200 controls!
April 30th, 2007 8:05pm

We had a setting in web.config for the maximum no of controls on the page. I had to bump up the setting to get it working.
Free Windows Admin Tool Kit Click here and download it now
April 30th, 2007 10:36pm

Web.Config file location :

C:\Inetpub\wwwroot\wss\VirtualDirectories\80(WebApp Port Number

Increase the limit :

<SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">
<PageParserPaths />
</SafeMode>

Amir Kayvan

SharePoint / Web Developer

http://www.dobuydirect.com

January 16th, 2008 3:50pm

Changing the maxcontrols number did not help me and I am getting the same error. Is anyone else still having trouble with this?
Free Windows Admin Tool Kit Click here and download it now
January 17th, 2008 1:34pm

I've tried the max controls, it works.
you may need to do an iisreset though.

kind regards
January 29th, 2008 12:33am

Is there any impact, like system performance if I increase the MaxControls to 1000 or even bigger number?

Thanks!
Free Windows Admin Tool Kit Click here and download it now
September 22nd, 2008 3:12am

Thats was awesome. I will add this to my longlist of fixes and tweaks.
March 23rd, 2009 10:00pm

Prash,

I remember reading somewhere that if you increase the max controls setting, you might want to increase the IIS time-out value. Basically, if a page is going to have >200 controls, there's a good chance (especially on slower connections) that it will time-out before it displays. Just an idea...

Oh, and I have no idea on how to increase the IIS time-out value. I ended up rearchitecting my solution instead.
Free Windows Admin Tool Kit Click here and download it now
March 24th, 2009 3:09am

Hi,

I tried changing the maxcontrols but the error still remains. I did an IISRESET too. Any ideas?
October 24th, 2009 7:31am

Genius! Thank you kindly. Worked like magic.
Free Windows Admin Tool Kit Click here and download it now
March 31st, 2010 9:46pm

If you have configured AAM - Alternate Access  Mapping, you must do it in port 80. It's bit late but hope it helps somebody

Regards

JP




  • Edited by Johnrenik Tuesday, June 19, 2012 2:36 PM
June 19th, 2012 2:24pm

These same Problem is done with my site. when i found the solution for this problem i got one blog where provides the solution.

I share that blog link with you. i hope you get your solution for there.

Visit:- http://blog.trimantra.com/sharepoint-error-page-allows-limit-200-controls-limit-exceeded/

Free Windows Admin Tool Kit Click here and download it now
May 15th, 2015 1:36am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics