Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DNS Error on Upload when Max filesize exceeded 1

Status
Not open for further replies.

VBRookie

Programmer
May 29, 2001
331
US

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top