Technical support This forum is closed.
Version 1.x > Technical support > Image Uploads Failing View modes: 
User avatar
Member
Member
trevornorth - 5/24/2006 2:44:34 PM
   
Image Uploads Failing
On a regular basis attempting to upload a replacement image file through the CMS desk returns an error reporting that the the file is in use by another process.

On first impressions this appears to be linked to GetFile.aspx accessing the file, but I have been unable to ascertain the exact cause and was wondering if anyone could point me in the right direction/provide a fix.

I will of course be happy to provide any further information that may help in finding a resolution to this problem.

Regards,
Trevor

User avatar
Guest
admin - 5/25/2006 8:30:47 AM
   
Re: Image Uploads Failing
Hi Trevor,

Thank you for your message. I'm afraid this is caused by ASP.NET process blocking the file if it has been requested recently through the getfile.aspx script. Does it occur on your development machine or only on the production server?

Thank you.

Best Regards,

User avatar
Member
Member
trevornorth - 5/25/2006 10:31:58 AM
   
Re: Image Uploads Failing
Only on the production server, I have been unable to reproduce the problem on my development machine.

User avatar
Guest
admin - 5/29/2006 7:09:34 PM
   
Re: Image Uploads Failing
Unfortunately, I'm not sure how to solve this. Does it happen with all files or only with some of them?

Thank you.

User avatar
Member
Member
trevornorth - 7/12/2006 10:06:01 AM
   
Re: Image Uploads Failing
The problem occurs with all image files I have tried. The full details of the error reported are as follows:

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 7/12/2006 8:58:49 AM
Event time (UTC): 7/12/2006 7:58:49 AM
Event ID: a6b269ead2ce4f62b40b366faf96a1b8
Event sequence: 116
Event occurrence: 12
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/620527597/Root-1-127971472699013750
Trust level: Full
Application Virtual Path: /
Application Path: ********
Machine name: ********

Process information:
Process ID: 4164
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE

Exception information:
Exception type: IOException
Exception message: The process cannot access the file '******** \Images\Logos\DRS.jpg' because it is being used by another process.

Request information:
Request URL: ********/cmsdesk/content/edit.aspx?idpath=/31/30/72&culture=
Request path: /cmsdesk/content/edit.aspx
User host address: 80.229.60.209
User: escLiveAdmin
Is authenticated: True
Authentication Type: Forms
Thread account name: NT AUTHORITY\NETWORK SERVICE

Thread information:
Thread ID: 7
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode)
at System.Web.HttpPostedFile.SaveAs(String filename)
at Kentico.CMS.CMSControls.CMSUploader.ControlOnLoad(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
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)

User avatar
Guest
admin - 7/12/2006 10:11:07 AM
   
Re: Image Uploads Failing
Hello,

Thank you for your post. Unfortunately, we are not able to solve this since the file is blocked (most likely) by IIS. The only workaround is to upload a new file instead of updating an existing one.

Best Regards,