azure - Azure 应用服务:“磁盘空间不足。” 虽然 300MB/50GB
问题描述
我们在服务计划中运行了一项应用服务,该服务计划的存储限制为 50GB。
应用服务是服务计划的唯一一部分。
我们有一个运行在D:\home\site\services>
一个文件夹上的 .NET Web 服务,我们定期在其中创建.docx
和.pdf
文件。
几个月前,我们只是There is not enough space on the disk
在该上传文件夹中存储了多个千兆字节后才收到。但是随着时间的推移,这个异常被越来越快地抛出——我们通过清空上传文件夹来解决这个问题。
到目前为止,当上传文件夹中的文件少于 100 个时,我们会收到此异常。虽然应用服务的总存储空间只有 400MB/50GB...
这是堆栈跟踪的顶部:
System.IO.IOException: There is not enough space on the disk.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.FileStream.Write(Byte[] array, Int32 offset, Int32 count)
at Xceed.Words.NET.DocX.Save()
at Xceed.Words.NET.DocX.SaveAs(String filename)
有谁知道我们做错了什么?
编辑:应用服务和应用服务计划的配额均为 50GB。我根本没有看到任何存储限制。
解决方案
推荐阅读
- typescript - 改变“let”声明的范围
- javascript - 新手需要强制php页面重新加载一次
- css - 如何更改全局 CSS
- android - 当我尝试在android中解密时出现AES BadTag异常
- validation - Cakephp 自定义验证方法返回 False 但保存并不显示任何消息
- mongodb - 无法在 Ubuntu 20.04 上启动 MongoDB 服务器
- post - 使用 RestAssured,我得到了部分响应。不知道我到底错过了什么
- firebase - Flutter FireStore 查询使用状态
- python - Django:嵌套的 OuterRef 无法访问祖父母的 ID
- reactjs - 没有浏览器刷新,MERN 赞成/反对投票不会更新