48 Appendix C
Configuring the Web.config File
You can modify the Web.config file to prevent the following errors:
• Upload fails for files larger than 30 MB.
• Merlin imaging fails when the URL and query string sizes are not adequate.
Add the following contents to the Web.config file (the Web.config file can be found in the
inetpub\wwwroot folder):
<security>
<requestFiltering>
<requestLimitsmaxAllowedContentLength="4294967296" maxUrl="8000"
maxQueryString="8000" />
</requestFiltering>
</security>
This example shows the web.config file with the contents added:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<directoryBrowse enabled="true" showFlags="Date, Time,
Size, Extension, LongDate" />
:
:
<security>
<requestFiltering>
<requestLimitsmaxAllowedContentLength="4294967296"
maxUrl="8000" maxQueryString="8000" />
</requestFiltering>
</security>
</system.webServer>
</configuration>