Request Timed Out - when uploading media file

Answered (Verified) This post has 1 verified answer | 5 Replies | 3 Followers

intelac
Top 500 Contributor
75 Posts
Points 1,075
By: intelac
Posted: Fri, Jun 27 2008 4:33 AM

Hi There,

Users always received Request Timed Out whenever uploading media file.. plesae help!!!

---------------------------------------------------------------------------------

Request timed out.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Request timed out.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

 

[HttpException (0x80004005): Request timed out.]

 


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

 
  • Post Points: 35 |

Answered (Verified) Verified Answers

Alex Crome
Top 10 Contributor
2,782 Posts
Points 41,115
TelligentSupportTeam
Answered (Verified) By: Alex Crome
Posted: Fri, Jun 27 2008 11:14 AM In reply to

Is the file you're trying to upload larger than 4MB, and do smaller files upload correctly?  If so, I suggest you have a look at http://docs.communityserver.com/general-topics/allowing-users-to-upload-files-greater-than-4-mbytes/.

 
Answered (Verified)
  • Post Points: 20 |

All Replies

Alex Crome
Top 10 Contributor
2,782 Posts
Points 41,115
TelligentSupportTeam
Answered (Verified) By: Alex Crome
Posted: Fri, Jun 27 2008 11:14 AM In reply to

Is the file you're trying to upload larger than 4MB, and do smaller files upload correctly?  If so, I suggest you have a look at http://docs.communityserver.com/general-topics/allowing-users-to-upload-files-greater-than-4-mbytes/.

 
Answered (Verified)
  • Post Points: 20 |
bspilove
Top 500 Contributor
73 Posts
Points 950
By: bspilove
Posted: Sun, Jun 29 2008 12:05 PM In reply to

You can change the timeout value in the /themes/themename/media/uploadpostattachment.aspx file by adding this to the top of the page, just below the @page directive.

<script runat="server">

void Page_Load() {

HttpContext.Current.Server.ScriptTimeout=180;

}

</script>

I believe the default timeout for .net 2.0 is 110 seconds, so this would increase it to 180 seconds. You may need to play with that value to see what works best for you. 

 

 
  • Post Points: 20 |
intelac
Top 500 Contributor
75 Posts
Points 1,075
By: intelac
Posted: Mon, Jun 30 2008 12:33 AM In reply to

Hi Thanks for the answer, I changed the a few related themes's uploadpostattachment.aspx, and it works!!!

Thank you for your help!!

 
  • Post Points: 5 |
intelac
Top 500 Contributor
75 Posts
Points 1,075
By: intelac
Posted: Tue, Jul 1 2008 8:28 PM In reply to

Nope, this happend to event 1KB text file. So the issue actually happend right after I click on the Save button at the bottom to save the entire media post.  FYI, the file has successfully uploaded to the media file event though I recieved error on the page, when I go back to the media upload page, i saw the file already in the media.  So i guess is that server side already handled the upload, but the client page is still loanding (until it get timed out)...

So I managed to fineTuned this before that, however after I installed with cs2008 SP1, now it gave different error...Thread was being aborted ....

any idea what went wrong here...?

Thanks!!

 

 
  • Post Points: 5 |
josephpy
Not Ranked
1 Posts
Points 0
By: josephpy
Posted: Wed, Jul 23 2008 1:49 AM In reply to

Intelac,

   I guess your script is being timed out and so you are getting this error. You can add the following bit of code in the method where you are uploading file.

Server.ScriptTimeout = 500   'in seconds

 
  • Post Points: 0 |
Page 1 of 1 (6 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com