Hi,
I'm sure that someone has run into this. I have a file upload control on my form and I've set the web.config to allow files to be uploaded that are up to a certain limit. If I try to upload a file larger than that instead of going to my custom error screen I get the DNS error screen.
No amount of error capture logic seems to work here. I've tried to trap the error in the Application_error sub and the Application_onbeginrequest sub to no avail.
I've found potential solutions on google that have brought me no joy. Can anyone steer me in the write direction? I'm using .NET 2.0 / IIS6 / XP / VB.NET.
The upload works fine when the file size is less than the limit.
Many Thanks,
- VB Rookie