已经设定了可上传10M的大小的文件。采用的是asp.net 2.0
上传小文件,比如100K以下的没问题,但是超过100K,就会出现如下的错误:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 2006-8-29 16:20:29
Event time (UTC): 2006-8-29 8:20:29
Event ID: df4ba710dbb64712a9b227d6e08d3d0e
Event sequence: 224
Event occurrence: 3
Event detail code: 0
Application information:
Application domain: *********
Trust level: Full
Application Virtual Path: Application Path: C:\Inetpub\wwwroot\******
Machine name: *******
Process information:
Process ID: 1756
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: ObjectDisposedException
Exception message: Cannot access a closed file.
Request information:
Request URL: ***********
Request path: *********
User host address: 127.0.0.1
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 5
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.IO.__Error.FileNotOpen()
at System.IO.FileStream.Seek(Int64 offset, SeekOrigin origin)
at System.Web.HttpRawUploadedContent.TempFile.GetBytes(Int32 offset, Int32 length, Byte[] buffer, Int32 bufferOffset)
at System.Web.HttpRawUploadedContent.CopyBytes(Int32 offset, Byte[] buffer, Int32 bufferOffset, Int32 length)
at System.Web.HttpInputStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at PECS_WEBCONTROL.FileUploadControl.GetItemByteArray(Int32 p_Index) in D:\PECS_Source\PECS_WEBCONTROL\FileUploadControl.cs:line 633
at PECS_WEBCONTROL.FileUploadControl.GetUploadFilesInfo() in D:\PECS_Source\PECS_WEBCONTROL\FileUploadControl.cs:line 731
at PECS_WEB.Construct.ConstructManage.ConstructReportManage.ibt_Save_Click(Object sender, ImageClickEventArgs e) in D:\PECS_Source\PECS_WEB\Construct\ConstructManage\ConstructReportManage.aspx.cs:line 121
at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e)
at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
[求助]2.0下,文件上传时,系统日志报错!