How do I enable uploading large files to classic ASP on IIS?

Asked

Viewed 64 times

0

I have an upload system in Classic ASP. I can upload up to 200KB without problems, but when I try a bigger size the error occurs:

Request Object error 'ASP 0104 : 80004005' Operation not Allowed /admin/freeaspupload.Asp, line 101

I saw that I need to adjust the web.config file on the hosting server (godaddy), so I put it as below, but still the error continues.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.web>
<customErrors mode="Off"/>    
<httpRuntime maxRequestLength="2147483647"/>
<sessionState timeout="1600"  />
</system.web>
    
<system.webServer>
    <httpRedirect enabled="false" destination="" exactDestination="true" httpResponseStatus="Permanent" />
    <httpErrors errorMode="Detailed">
<remove statusCode="403" subStatusCode="-1" />
<remove statusCode="404" subStatusCode="-1" />
</httpErrors>
    <security>
<requestFiltering>
        <requestLimits maxAllowedContentLength="2147483647"/>
</requestFiltering>
</security>
</system.webServer>
</configuration>

Someone to help me please?

2 answers

1

Ricardo, I put it the way you put it, but the mistake again

HTTP/1.1 New Application Failed

I researched about it and the problem is very vague. : I imagine it’s what you’re not accepting. Something about IIS 8.5

0

Despite being "classic ASP", due to the page "freeaspupload.Asp", this config is from ASP.Net.

You need to include a Section <asp> with settings within the <system.webServer>, defining "maxRequestEntityAllowed", and as the file is large and may take time, "scriptTimeout" also:

<system.webServer>
  <asp>
     <limits scriptTimeout="00:01:00"
        requestQueueMax="1000"
        maxRequestEntityAllowed="104857600" />
  </asp>
  ... outras settings
</system.webServer>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.