Avatar of Wayne Barron
Wayne Barron
Flag for United States of America asked on

vb.net upload media files writes a LOT of data to database in LARGE script, results in HTTP Error 502.3 - Bad Gateway

Hello, All.
(On server farm. The script will run from either 4-servers.
However, they upload to a SINGLE server, which copies files to two other servers)

I have run into an issue.
My script is enormous and writes a lot of information into the database for each media file uploaded.
If I upload a few files, say, up to 10. They usually do not have an issue.
However, when I upload more than 10, say, 15 and above, it will send me over to
HTTP Error 502.3 - Bad Gateway
Even though the page shows, it will continue writing to the database until it finished with the script.
Except some of the data is incorrect. So, this error does cause issues with some of the written data, but will not stop it.

Which for what I have read, it is timing out.
I have this in my web.config file.
<httpRuntime executionTimeout="9999" maxRequestLength="2097151"/>

Open in new window

But still, it will resolve to the 502.3 error page.

Any help on this would be great.
Thanks.
Wayne
Visual Basic.NETMicrosoft SQL Server

Avatar of undefined
Last Comment
Wayne Barron

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Wayne Barron

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Your help has saved me hundreds of hours of internet surfing.
fblack61