Symptoms

If there is a folder containing more than 30,000 files and it is being accessed through Remote Web Access -> Media, the Remote Web Access page may hang there without response.

Resolution

Windows Server 2012 Essentials Remote Web Access invokes UPnP API to retrieve media files information. When the response string from UPnP API is over the limit of response length specified in Windows registry, the invocation will never return.

Below are three options to fix this issue.

  1. Distribute the files into multiple folders instead of putting them all in one folder

  2. Manually update the registry value “SOAP Size Limit” under “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\UPnP” to a big enough value

  3. Run the following script in an evaluated command prompt to update the registry value.

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\UPnP" /v "SOAP Size Limit" /t REG_DWORD /d 0x4000000 /f