• Article for your preferred language does not exist. Below is international version of the article.

Article ID: 114144, created on Jun 19, 2012, last review on Mar 28, 2015

  • Applies to:
  • Operations Automation

Symptoms

  • IIS on Microsoft Lync 2010 FrontEnd or Director server shows error message 'Cannot read configuration file because it exceeds the maximum file size'.
  • User tries to view Dial-in Settings. They click on Tools > Dial-in Conferencing Settings in Lync client. Error message "500 - Internal Server Error' message is shown in the opened page.
  • The following window appears when user tries to login. The valid credentials are not accepted

Cause

Adding a new SIP domain in Lync 2010 causes adding corresponding rewrite rules which are stored in the web.config file.
When there are a lot of SIP domains (about 85), the size of web.config exceeds the default file size restriction and IIS shows error 'Cannot read configuration file because it exceeds the maximum file size'.

Resolution

The following steps allow to increase the maximum size of web.config.
  1. Open registry editor - Start > Run > regedir.exe.
  2. Navigate to key:  HKLM\SOFTWARE\Microsoft\InetStp\Configuration (If there is no 'Configuration' key, create it)
  3. Add/change DWORD value MaxWebConfigFileSizeInKB. The default value is 250 KB. Each SIP domain requires about 3 KB for rewrite rules, so the new value should be not less than 3 * (expected count of SIP domains).
  4. Run "iisreset" command in CMD to apply the new restriction value.
These steps should be performed on each Lync 2010 Front End and Director Server.

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF