網(wǎng)(LieHuo.Net)教程 在后臺圖片節(jié)點中上傳多個圖片文件,在點擊上傳文件的時出錯。在后臺圖片節(jié)點中上傳多個圖片文件,在點擊上傳文件的時出錯。出錯的提示如下:
以下為引用的內(nèi)容: 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 |
解決辦法:問題出在水印效果上,需要關(guān)掉。如果圖片需要加水印,暫時請使用附件管理-->上傳文件管理,找到圖片然后"批量添加水印"。
關(guān)閉水印效果的具體操作如下:
第一步:
第二步:
第三步:
上一篇 fck去掉不要的菜單
下一篇 網(wǎng)頁設計的12種顏色