I have the following setup on the Windows IIS machine with .NET 4.0 installed.
2 drives, C and D. The inetpub folder which contains my websites are on the D drive.
My only web site saves the attachments to the D drive.
My C drive has got no space on it (for arguments sake 0kb).
Why would I get the following error when attempting to 'upload' attachments via the website to the D drive when the C drive is the one that's without space? Does .NET for example first copy it in a temp folder on C drive?
Here's the error:
[IOException: There is not enough space on the disk.
]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +9718418
System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count) +9555882
System.IO.FileStream.Write(Byte[] array, Int32 offset, Int32 count) +146
System.Web.TempFile.AddBytes(Byte[] data, Int32 offset, Int32 length) +32
System.Web.HttpRawUploadedContent.AddBytes(Byte[] data, Int32 offset, Int32 length) +8788874
System.Web.HttpRequest.GetEntireRawContent() +9035719
System.Web.HttpRequest.GetMultipartContent() +68
System.Web.HttpRequest.FillInFormCollection() +247
System.Web.HttpRequest.get_Form() +104
System.Web.HttpRequest.get_HasForm() +9036655
System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +97
System.Web.UI.Page.DeterminePostBackMode() +69
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +135
The temp folders used by your IIS is on C drive. That is the one causing this issue.
IIS is trying to write the files into the temporary files which is usually located under C:\Windows\Microsoft.net\Framework\<version>\Temporary ASP.NET Files
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With