I was working on custom New form which I had created in Visual Studio 2012 as aspx page and attched it to the list.
I had large number of controls in the page and found this error when i tried to browse it through browser.
The solution for this error was to change a setting in web.config.
Here I am working on SharePoint 2013
So I went to
C:\inetpub\wwwroot\wss\VirtualDirectories\
Now open webapplication Eg:80 where your site is hosted
open web.config
Find the tag below in the web.config
<SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="10" TotalFileDependencies="250" AllowPageLevelTrace="false">
by default MaxControls="200" is set to 200.So you get the exception.
You can change this according to your requirement.
This is resolve the issue.
I had large number of controls in the page and found this error when i tried to browse it through browser.
The solution for this error was to change a setting in web.config.
Here I am working on SharePoint 2013
So I went to
C:\inetpub\wwwroot\wss\VirtualDirectories\
Now open webapplication Eg:80 where your site is hosted
open web.config
Find the tag below in the web.config
<SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="10" TotalFileDependencies="250" AllowPageLevelTrace="false">
by default MaxControls="200" is set to 200.So you get the exception.
You can change this according to your requirement.
This is resolve the issue.