Error with Asset Manager - Rename

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
User avatar
dbreyley
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 22
Joined: Tue Jun 17, 2008 8:06 am

Error with Asset Manager - Rename

Post by dbreyley » Tue Feb 04, 2014 11:50 am

We are receiving the following error when trying to rename a image with the asset manager.
We are on Gold Build 5731
An error has occured at http://mydomain.com/Admin/Products/Asse ... nager.aspx
Exception: Exception of type 'System.Web.HttpUnhandledException' was thrown. Stack Trace: at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.admin_products_assets_assetmanager_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e282eddb\1ef996f9\App_Web_ig2tkjg3.10.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) Inner Exception: The process cannot access the file because it is being used by another process. Inner Exception Stack Trace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.File.InternalMove(String sourceFileName, String destFileName, Boolean checkHost) at AbleCommerce.Admin.Products.Assets.AssetManager.RenameOKButton_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\bairdDev\Admin\Products\Assets\AssetManager.aspx.cs:line 528 at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
I can get a file to rename using File.Move in a function that runs on the Page Load, but it would seem that when you select a file, that causes the in use error.
We have similar issue with deleting a (single) file.

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Error with Asset Manager - Rename

Post by Katie » Tue Feb 04, 2014 2:21 pm

As far as I can tell, there are no bugs with the Asset Manager in R5. The error seems to indicate that the temporary Asp.Net files are having some issue. Have you tried restarting IIS or the application pool?
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Error with Asset Manager - Rename

Post by jmestep » Wed Feb 05, 2014 6:21 am

That error message is an indication that the file is in use so it can't be changed. You might need to rename if via an ftp login.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
dbreyley
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 22
Joined: Tue Jun 17, 2008 8:06 am

Re: Error with Asset Manager - Rename

Post by dbreyley » Wed Feb 05, 2014 11:51 am

Tried recycling the app pool and the error still persists.

The file should not be in use. The only use of it would be on the asset manager page, you need to click on it to be able to rename it.

If I use a function that renames a file, based on the path it does rename it, just not using the built in functionality.

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Error with Asset Manager - Rename

Post by Katie » Wed Feb 05, 2014 12:52 pm

Can you try uploading a test image through the Asset manager so it won't be associated to any product. Then try to rename it.

Thanks
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

User avatar
dbreyley
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 22
Joined: Tue Jun 17, 2008 8:06 am

Re: Error with Asset Manager - Rename

Post by dbreyley » Fri Feb 07, 2014 1:04 pm

I was using a new image to test with, and was getting the error.

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Error with Asset Manager - Rename

Post by Katie » Fri Feb 07, 2014 2:13 pm

Ok, but I'd like to know if you can reproduce it with every image you try to rename, or if this is just a random issue with one particular image.
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Error with Asset Manager - Rename

Post by jmestep » Mon Feb 10, 2014 5:56 am

I found the asset manager (never used it before) in a test 5731 site and attempted to rename an image in every way I could think of and it worked every time. Maybe I'm not testing taking the exact steps you were?
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Post Reply