Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Error Uploading Files
Ken Ray
#1 Posted : Wednesday, 28 October 2009 12:45:28 AM(UTC)
Rank: Member

Joined: 27/08/2008(UTC)
Posts: 10
Location: Orange Park, Florida

Environment -
GSP v 2.1.3162
Server - IIS 6 on Windows Server 2003

When I try to upload a photo, sometimes I get the following error:

Code:

Event Type:    Warning
Event Source:    ASP.NET 2.0.50727.0
Event Category:    Web Event
Event ID:    1309
Date:        10/28/2009
Time:        8:22:57 AM
User:        N/A
Computer:    MDECDWWW2
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 10/28/2009 8:22:57 AM
Event time (UTC): 10/28/2009 1:22:57 PM
Event ID: e4f56b18c30144dca91794ce77e1f409
Event sequence: 461
Event occurrence: 1
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/4/Root/gallery-6-129012096974036930
Trust level: Full
Application Virtual Path: /gallery
Application Path: E:\Intranet\gallery\
Machine name: MDECDWWW2

Process information:
Process ID: 3952
Process name: w3wp.exe
Account name: MDECDWWW2\webmaster

Exception information:
Exception type: IOException
Exception message: The process cannot access the file 'E:\Intranet\gallery\App_Data\_Temp\200910280822561818_396363317_Cockies feeding time 2.jpg' because it is being used by another process.

Request information:
Request URL: http://intranet.mississippi.org/gallery/task/addobjects.aspx?aid=26
Request path: /gallery/task/addobjects.aspx
User host address: 10.240.2.114
User: webmaster
Is authenticated: True
Authentication Type: Forms
Thread account name: MDECDWWW2\webmaster

Thread information:
Thread ID: 7
Thread account name: MDECDWWW2\webmaster
Is impersonating: False
Stack trace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.Delete(String path)
at GalleryServerPro.Web.task.addobjects.AddUploadedFilesForFullTrust(UploadedFileInfoCollection files)
at GalleryServerPro.Web.task.addobjects.Upload1_Uploaded(Object sender, UploadUploadedEventArgs e)
at ComponentArt.Web.UI.Upload.OnUploaded(UploadUploadedEventArgs e)
at ComponentArt.Web.UI.Upload.OnLoad(EventArgs args)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)




The photo is uploaded to the media directory, and if I then synchronize the album, it appears in the album listing. When I check the App_Data\_Temp the file is not there. Then when I go back to the Add media files page, and try to upload another file, a pup up box appears titled "Message from webpage" with the mesage "Upload error: Upload credentials expired."

I then went back to the GSP home page, entered the album again, selected "Add Object", and the upload worked perfectly.

Any suggestions?

Thanks
Roger Martin
#2 Posted : Wednesday, 28 October 2009 11:04:19 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,301
Location: Fort Atkinson, WI

The error is happening while trying to delete the temporary file after GSP has fully processed it (moved a copy to the media objects directory, created thumbnails, etc). It is not a big deal that it fails because any files left in the temp directory are cleaned up during the next app restart. But I imagine it is annoying.

For some reason your OS won't let the file be deleted because some code earlier in the process still has a lock on it. That really shouldn't happen, and in my view this is a bug or issue with either the OS or the .NET Framework.

About all I can suggest is to make sure you are on the latest, patched version of the .NET Framework and your OS.

I may tweak the code so that if a failure like this happens, it happens silently and allows the program to continue.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Ken Ray
#3 Posted : Thursday, 29 October 2009 12:20:25 AM(UTC)
Rank: Member

Joined: 27/08/2008(UTC)
Posts: 10
Location: Orange Park, Florida

OK - we are in the process of moving our web sites to a new server (Win2008 / IIS7) so maybe that will fix it. I've also got the latest version of GSP to install....

I'll look around and see if there is any patches to install.

Thanks
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.