| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 744 人关注过本帖
标题:[求助]2.0下,文件上传时,系统日志报错!
只看楼主 加入收藏
jackyounger
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2006-8-29
收藏
 问题点数:0 回复次数:1 
[求助]2.0下,文件上传时,系统日志报错!

已经设定了可上传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)

搜索更多相关主题的帖子: Event 日志 文件 系统 Application 
2006-08-29 17:13
jackyounger
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2006-8-29
收藏
得分:0 
请高手看一下帮忙解决一下!谢谢!
2006-08-29 17:14
快速回复:[求助]2.0下,文件上传时,系统日志报错!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.011333 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved