Request entity too large error - HxGN SDx - Update 63 - Administration & Configuration - Hexagon

HxGN SDx API Services Configuration

Language
English
Product
HxGN SDx
Search by Category
Administration & Configuration
SmartPlant Foundation / SDx Version
10

Problem

When you attempt to upload a large file using Web API v3 UploadFile syntax, you receive the following error:

HTTP Status 413: Request Entity Too Large.

Solution

You can resolve this by increasing the following system parameters to allow the upload of files with a large number of records:

  1. Open IIS Manager.

  2. In the Connections pane, expand the Sites node, and select the site.

  3. Select Features View, and in the Management section, click Configuration Editor.

  4. Select system.web > httpRuntime and increase the values for following parameters:

    • executionTimeout

    • maxQueryStringLength

    • maxRequestLength

  5. In the Connections pane, expand the Sites node, and select [sitename]FileService.

  6. Repeat steps 3 - 4.

After saving those settings you do the following:

  1. In the Connections pane, expand the Sites node, and select your site.

  2. Select Features View, and in the IIS section, click Request Filtering.

  3. In Actions pane, click Edit Feature Settings, and increase the values for the following parameters:

    • Maximum allowed content length (Bytes)

    • Maximum URL length (Bytes)