在后台图片节点中上传多个图片文件,在点击上传文件的时出错
在后台图片节点中上传多个图片文件,在点击上传文件的时出错。出错的提示如下:
==============================================================================
Server Error in '/' Application.
--------------------------------------------------------------------------------
The process cannot access the file 'd:freehostgzjrwwebUploadFilesPhoto2009102009101210235971400.jpg' because it is being used by another process.
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.IO.IOException: The process cannot access the file 'd:freehostgzsnwebUploadFilesPhoto2009102009101210235971400.jpg' because it is being used by another process.
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:
[IOException: The process cannot access the file 'd:freehostgzsnwebUploadFilesPhoto2009102009101210235971400.jpg' because it is being used by another process.]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +7714720
System.IO.File.Delete(String path) +7574888
PowerEasy.Framework.Common.FileSystemObject.Delete(String file, FsoMethod method) +31
PowerEasy.Framework.Components.WaterMark.AddWaterMark(String originalImagePath) +588
PowerEasy.SiteFactory.WebSite.Admin.Accessories.MultiplePhotoUpload.BtnUpload_Click(Object sender, EventArgs e) +3067
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
=============================================================================
解决办法:问题出在水印效果上,需要关掉。如果图片需要加水印,暂时请使用附件管理-->上传文件管理,找到图片然后"批量添加水印"。
关闭水印效果的具体操作如下:
第一步:
第二步:
第三步: