Azure 应用服务:“磁盘空间不足。” 虽然 300MB/50GB

Mas*_*son 5 storage azure azure-app-service-plans azure-web-app-service

我们有一个在服务计划中运行的应用服务,其存储限制为 50GB。

应用服务是服务计划的唯一组成部分。

我们有一个 .NET Web 服务在D:\home\site\services>一个文件夹上运行,我们定期在其中创建.docx.pdf文件。

几个月前,我们只是There is not enough space on the disk在该上传文件夹中存储了多个 GB 之后才收到。但过了一段时间,这个异常越来越快地被抛出——我们通过清空上传文件夹来解决这个问题。

到现在为止,当上传文件夹中的文件甚至少于 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)
Run Code Online (Sandbox Code Playgroud)

有谁知道我们做错了什么?

编辑:应用服务和应用服务计划都有 50GB 的配额。我根本没有看到任何存储限制。