Files Failing to Upload to IIS Web Server

Applies to: All versions of Ephesoft Transact

Issue

Some files are failing to upload to the IIS web server.

Root Cause

The IIS web server supports up to 30MB size files by default. Larger files may fail to upload to the server due to sizing limitations.

Solution

Perform the following to increase the file size limitations:

Update the Request Filtering Settings

  1. Open IIS Manager and select the level for which you want to configure the request filter.
  2. In Features View, double-click Request Filtering.
  3. In the Actions pane, click Edit Feature Settings.
  4. In the Edit Request Filtering Settings dialog, edit the Maximum allowed content length and then click OK.

If the above change doesn’t resolve the issue, you may need to edit the web.config file in Transact.

Edit the web.config File

If updating the request filtering settings doesn’t resolve the issue, you can edit the web.config file (located at [Ephesoft_Directory]\EphesoftReports) to change the “maxRequestLength” parameter.

<system.web>
  <httpRuntime executionTimeout="100000" maxRequestLength="1048576"/>
</system.web>

A sample web.config file which deals with upload size issue in IIS is as below:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.web>
    <httpRuntime executionTimeout="100000" maxRequestLength="1048576"/>
  </system.web>
  <system.webServer>
    <handlers>
      <add name="BonCode-Tomcat-WC-Handler" path="*" verb="*" type="BonCodeIIS.BonCodeCallHandler" preCondition="integratedMode"/>
      <add name="BonCode-Tomcat-JSP-Handler" path="*.jsp" verb="*" type="BonCodeIIS.BonCodeCallHandler" preCondition="integratedMode"/>
      <add name="BonCode-Tomcat-CFC-Handler" path="*.cfc" verb="*" type="BonCodeIIS.BonCodeCallHandler" preCondition="integratedMode"/>
      <add name="BonCode-Tomcat-CFM-Handler" path="*.cfm" verb="*" type="BonCodeIIS.BonCodeCallHandler" preCondition="integratedMode"/>
    </handlers>
    <defaultDocument>
      <files>
        <add value="index.jsp"/>
        <add value="index.cfm"/>
      </files>
    </defaultDocument>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="2147483648" maxUrl="4096" maxQueryString="2048">
          <headerLimits>
            <remove header="Content-type"/>
            <add header="Content-type" sizeLimit="1000000"/>
          </headerLimits>
        </requestLimits>
      </requestFiltering>
    </security>
  </system.webServer>
</configuration>