Wrox Programmer Forums
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 16th, 2007, 11:46 PM
Authorized User
 
Join Date: Feb 2007
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default File upload error

Hello All,
I am facing a problem with file upload(csv file). I am using file upload control on my aspx page. Everything works well on my machine but when i deployed it on test server, it shows an error "This page can't be displayed".(I dont know why it is coming bcoz i am using try catch block)
When i remove some records in the file, everything works well. Size of the file is 124 kb. i think we can upload upto 4 mb files. In my web.config i use this code to set the size of the file. I know problem is with the size of the file. But if is the problem why it is working on my machine.

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


Thanks in Advance

 
Old August 20th, 2007, 08:30 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 107
Thanks: 1
Thanked 8 Times in 7 Posts
Default

Temporarily set the debug to true so that you can see the line in which the error occurs.

Then post more detail to see if we can help.





 
Old August 20th, 2007, 02:52 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

The "This page can't be displayed" error message hints at a general server error. Usually this is shown when the browser can't find the server. Compare the URL of the page before and after the error. What is the second URL? Does it look like it's correct? I would guess that the second URL is not correct. If you were getting a actual runtime error in your application the page would be found but you'd get an ASP.NET/framework runtime error message (i.e. an exception would be thrown).

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload File With ActiveFile Error yeapjudy Classic ASP Basics 0 June 15th, 2007 03:56 AM
Filter File Types in ASP.NET File Upload ramuis78 ASP.NET 2.0 Basics 2 May 31st, 2007 10:50 AM
Whole Folder upload(Multi file Upload) ramasamy_rams XML 1 September 9th, 2005 12:43 PM
JSP file upload and delete file pandjie JSP Basics 0 January 29th, 2005 10:49 PM
file upload error Ashleek007 Beginning PHP 2 June 8th, 2004 05:44 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.