I was working on a user control when I was encountered with below error:
The Page allows a limit of 11 dependency, and that limit has been exceeded.
Here is the solution for this issue:
1) Go to IIS manager.Choose your site, right-click and select explore.
2) You will find web.config file when you explore your site.Take backup of web.config file
3) Modify web.config as below.
- Find DirectFileDependencies in web.config
- Set DirectFileDependencies="20"
- Save the file.
4) Refresh the page.