Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 16th, 2007, 11:46 PM
Authorized User
Join Date: Feb 2007
Location: , , .
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.


Thanks in Advance

  #2 (permalink)  
Old August 20th, 2007, 08:30 AM
Friend of Wrox
Join Date: May 2006
Location: Northampton, United Kingdom.
Posts: 107
Thanks: 1
Thanked 8 Times in 7 Posts

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.

  #3 (permalink)  
Old August 20th, 2007, 02:52 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

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).


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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

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

All times are GMT -4. The time now is 05:31 AM.

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