November Happy Hour will be moved to Thursday December 5th.

Unable to Export Media Assets from between Environments

Vote:
 

I am trying to export Media assets from my local environment to dev environment in my DXC.when I am trying to import the zip file which i have exported from the local environment in DXC I am getting failure message.It is almost 400 MB.I tried to increase  maxRequestLength parameter in Web.config but no luck.As  maxRequestLength is int32 my request size is beyond that limit.Can any one help me with this?

#199745
Dec 10, 2018 6:31
Vote:
 

Hi Sai,

maxRequestLenght is setting for IIS 6.0. The IIS 7.0 uses setting maxAllowedContentLength to set max request length.

You should add more config to root level like this:

<system.web>
    <httpRuntime maxRequestLength="2097152" />
</system.web>
<system.webServer>
    <security>
        <requestFiltering>
            <requestLimits maxAllowedContentLength="2147483648" />
        </requestFiltering>
    </security>
</system.webServer>
#199751
Dec 10, 2018 8:43
Vote:
 

To add to Binhs answer, just a small clarification: maxRequestLength value is in kilobytes AND maxAllowedContentLength is in bytes.

Links to MS documentation:

So for example if you want to limit uploads to 500MB then:

  • maxRequestLength value would be 512000 (500MB x 1024 => 512000 kilobytes)
  • maxAllowedContentLength value would be 524288000 (500MB x 1024 x 1024 => 524288000 bytes)
#199755
Edited, Dec 10, 2018 19:47
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.