IT Community - Software Programming, Web Development and Technical Support

Page not found error when uploading big size files in ASP .NET

This is a discussion on Page not found error when uploading big size files in ASP .NET within the ASP and ASP.NET Programming forums, part of the Web Development category; Page not found error when uploading big size files in ASP .NET Objective: Solve the Page Not Found issue when ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-17-2007, 12:34 AM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
oxygen is on a distinguished road
Default Page not found error when uploading big size files in ASP .NET

Page not found error when uploading big size files in ASP .NET

Objective: Solve the Page Not Found issue when try to uploading Big size files.
in ASP.NET


Issue: Wheneever we try to upload an big size file (more than 5 MB) immediately the
page expires and it say page not pound in ASP.NET.


Solution: To solve this issues we have to increase the execution time and max requestlength
in httpruntime tag in Web.config.In the below sample i have increased the both.

<httpRuntime maxRequestLength="400000" useFullyQualifiedRedirectUrl="true" executionTimeout="180"/>
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-09-2007, 06:09 AM
smani smani is offline
D-Web Programmer
 
Join Date: Aug 2007
Posts: 56
smani is on a distinguished road
Post Re: Page not found error when uploading big size files in ASP .NET

hi,
By default, ASP.NET permits only files that are 4,096 kilobytes (KB) (or 4 megabytes [MB]) or less to be uploaded to the Web server. To upload larger files, you must change the maxRequestLength parameter of the <httpRuntime> section in the Web.config file.

Note When the maxRequestLength attribute is set in the Machine.config file and then a request is posted (for example, a file upload) that exceeds the value of maxRequestLength, a custom error page cannot be displayed. Instead, Microsoft Internet Explorer will display a "Cannot find server or DNS" error message.

If you want to change this setting for all of the computer and not just this ASP.NET application, you must modify the Machine.config file.

By default, the <httpRuntime> element is set to the following parameters in the Machine.config file:

<httpRuntime
executionTimeout="90"
maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false"
minFreeThreads="8"
minLocalRequestFreeThreads="4"
appRequestQueueLimit="100"
/>


The Machine.config file is located in the \System Root\Microsoft.NET\Framework\Version Number\Config folder.

Try this, u can get more idea if u visit this url
How to upload a file to a Web server in ASP.NET by using Visual Basic .NET

Regards
Manivannan.s
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
oracle import command not found error $enthil Database Support 6 09-08-2007 01:43 AM
Uploading Multiple Files in ASP.NET. H2o ASP and ASP.NET Programming 3 08-08-2007 06:39 AM
I got "Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocat ramkumaraol PHP Programming 0 08-01-2007 06:28 AM
Get Error -- 1814 "The specified resource name not found in the image file". In WM 5. theone Windows Mobile 0 07-25-2007 01:25 AM
I get the error "The page cannot be displayed" and an HTTP 502 Proxy Error. Why? kingmaker ASP and ASP.NET Programming 1 07-20-2007 04:43 AM


All times are GMT -7. The time now is 04:27 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0