There is not enough space on the disk.

Server Error in '/xxx' Application.


There is not enough space on the disk.

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: There is not enough space on the disk.
Source Error:

Line 118:
Line 119:        string newFile = Server.MapPath(InsusBase.TemporaryDirectory + newFileName);
Line 120:        FileUpload1.SaveAs(newFile);
Line 121:
Line 122:        try

Source File: D:\IntranetSites\xxx\System\SiteMgt\VideoMedia\Media.aspx.cs    Line: 120
Stack Trace:

[IOException: There is not enough space on the disk.
]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +9723522
   System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count) +9545638
   System.IO.FileStream.Write(Byte[] array, Int32 offset, Int32 count) +146
   System.Web.HttpRawUploadedContent.WriteBytes(Int32 offset, Int32 length, Stream stream) +128
   System.Web.HttpInputStream.WriteTo(Stream s) +36
   System.Web.HttpPostedFile.SaveAs(String filename) +114
   System.Web.UI.WebControls.FileUpload.SaveAs(String filename) +23
   System_SiteMgt_VideoMedia_Media.btnAdd_Click(Object sender, EventArgs e) in D:\IntranetSites\xxx\System\SiteMgt\VideoMedia\Media.aspx.cs:120
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
   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) +5563

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

 

今天用户上传培训教程视频,都成功上传了几个200多MB大的文件,传至第四个时,出现上面的错误提示。 此站点在开发时,测试是可以允许上传2GB或以内的大文件。为何有此问题呢?
马上把服务器的站点程序部署于本机。上传测试,1.65GB大的文件,也能成功上传。没有问题呀?

如下是web.config的配置:

 

由于本机能测试成功,两种情况可以推断,一是网络问题,二是服务器问题。前者似乎没有悬疑,后那者呢?从哪入手?
检查服务器磁盘空间,那显示还有319GB的Free。怎会显示System.IO.IOException: There is not enough space on the  disk.? ... 时间到了中午下班,不管怎样,先去吃饭,然后半个时休息,但此问题还没有解决,休息的质量是很差的,脑筋还是想起这个问题。

 

检查上传至服务器的临时文件,出错的文件只能上传67,040KB,被截除了。其余的上传的,全是0KB。

难道用户磁盘空间的限制? 如果是的话,是那一个用户呢?对于站点的话,应该是匿名用户。
打开磁盘分配空间,果然:


由于这是Intranet网站,服务器设置了磁盘使用空间,所有用户默认为1.5GB。把此用户的磁盘空间设置更大之后,问题也解决了。

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
This error message typically occurs when the Java Virtual Machine (JVM) is unable to allocate the required amount of memory for the application. The JVM is responsible for managing the memory allocation for Java applications. There are several possible reasons why the JVM may not be able to allocate the required amount of memory. Here are some common causes and possible solutions: 1. Insufficient memory: The JVM may not have enough available memory on the system to allocate the requested heap size. You can try increasing the memory available to the JVM by setting the -Xmx flag to a higher value. For example, you can set -Xmx2g to allocate 2GB of memory. 2. 32-bit JVM limitation: If you are running a 32-bit JVM, it may not be able to allocate more than 2GB of memory. In this case, you can try running a 64-bit JVM instead. 3. Conflicting memory settings: If you have conflicting memory settings in your application or in the JVM startup parameters, it can cause the JVM to fail to allocate the required memory. You can try removing any conflicting settings or adjusting them to ensure they do not conflict. 4. Other system resource limitations: There may be other system resource limitations, such as disk space or CPU usage, that are preventing the JVM from allocating the required memory. You can try freeing up resources or adjusting the application to use fewer resources. Overall, the solution to this error message will depend on the specific cause. By identifying and addressing the underlying cause, you can resolve the issue and allow your Java application to run successfully.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值