This topic is locked
[SOLVED]

web.config in ASPR 10.8

12/19/2022 11:30:02 PM
ASPRunner.NET General questions
joglidden author

Is anyone having any trouble with web.config using the latest version of ASPR 10.8? I try to add the following sections to increase file size upload, and it crashes the server every time "The page cannot be displayed because an internal server error has occurred." This worked with 10.7.

<system.web>
<!--Place these parameters in here to increase allowable file upload size, and to increase the session logout time-->

<httpRuntime executionTimeout="7200" maxRequestLength="48234496"/>
...

and

<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules runAllManagedModulesForAllRequests="true" />
<!-- Section added for file size upload -->
<security>
<requestFiltering>
<!-- maxAllowedContentLength, for IIS, in bytes, 48234496 = 45MB -->
<requestLimits maxAllowedContentLength="48234496" ></requestLimits>
</requestFiltering>
</security>
...
joglidden author 12/20/2022

Never mind.. just realized the new version adds the line "<httpRuntime " ... and you need to place your parameters in there, not add a duplicate "<httpRuntime " line.