请各位大侠帮忙看看关于上传图片报“磁盘空间不足”的问题
“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------
磁盘空间不足。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.IO.IOException: 磁盘空间不足。
源错误:
行 216: string filename = DateTime.Now.ToString("yyyyMMdd") + rd.Next(1000, 9999).ToString() + ext;
行 217: string path = Server.MapPath("~/upfiles/") + filename;
行 218: fudPhoto.SaveAs(path);
行 219: photo = "P_" + filename;
行 220: pic = path;
源文件: e:\virhostdir7\home59i\web\admin\RentSearch\RentSearchAlbums\RentSearchAlbumsEdit.aspx.cs 行: 218
堆栈跟踪:
[IOException: 磁盘空间不足。
]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +7717288
System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +1162
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) +61
System.IO.FileStream..ctor(String path, FileMode mode) +55
System.Web.HttpPostedFile.SaveAs(String filename) +99
System.Web.UI.WebControls.FileUpload.SaveAs(String filename) +23
admin_RentSearch_RentSearchAlbums_RentSearchAlbumsEdit.FileUploadImg(FileUpload fudPhoto) in e:\virhostdir7\home59i\web\admin\RentSearch\RentSearchAlbums\RentSearchAlbumsEdit.aspx.cs:218
admin_RentSearch_RentSearchAlbums_RentSearchAlbumsEdit.Insert() in e:\virhostdir7\home59i\web\admin\RentSearch\RentSearchAlbums\RentSearchAlbumsEdit.aspx.cs:94
admin_RentSearch_RentSearchAlbums_RentSearchAlbumsEdit.btnPost_Click(Object sender, EventArgs e) in e:\virhostdir7\home59i\web\admin\RentSearch\RentSearchAlbums\RentSearchAlbumsEdit.aspx.cs:137
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
各位高手帮忙看看这有可能是什么引起的问题?上传图片的时候有时好用有时不好用