删除附件时出错详细信息见下,再就是想问下 如下图中 1 处我上传完附件它是自动生成的 2 那怎么设置才能象官网的小图样子


删除时的错误提示
Server Error in '/' Application.
The process cannot access the file 'd:\web\wcq828\wwwroot\upload\2008\03\28\14\133345479613123.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:\web\wcq828\wwwroot\upload\2008\03\28\14\133345479613123.jpg' because it is being used by another process.
Source Error:
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:
1. Add a "Debug=true" directive at the top of the file that generated the error. Example:
<%@ Page Language="C#" Debug="true" %>
or:
2) Add the following section to the configuration file of your application:
<configuration> <system.web> <compilation debug="true"/> </system.web> </configuration>
Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.
Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario. |
Stack Trace:
| [IOException: The process cannot access the file 'd:\web\wcq828\wwwroot\upload\2008\03\28\14\133345479613123.jpg' because it is being used by another process.] System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +1972013 System.IO.File.Delete(String path) +157 Discuz.Forum.Attachments.DeleteAttachment(String aidList) +121 Discuz.ForumPage.editpost.ShowPage() +8222 Discuz.Web.UI.Pages.BasePage..ctor() +4082 Discuz.ForumPage.editpost..ctor() +37 ASP.aspx_1_editpost_aspx..ctor() +10 __ASP.FastObjectFactory_app_web_dn3t_cab.Create_ASP_aspx_1_editpost_aspx() +20 System.Web.Compilation.BuildResultCompiledType.CreateInstance() +49 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +115 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31 System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40 System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +139 System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +120 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155 |