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
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/.
CS Documentation - now available in downloadable PDF form
My CS Site
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.
Hi Thanks for the answer, I changed the a few related themes's uploadpostattachment.aspx, and it works!!!
Thank you for your help!!
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!!
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
Server.ScriptTimeout = 500 'in seconds
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com