I have the following installation installed on a Windows IIS computer with .NET 4.0 installed. 2, C and D. The inetpub folder containing my websites is located on drive D.
My only website saves attachments to drive D.
My C drive has no place on it (for arguments for the sake of 0kb).
Why should I get the following error when trying to โuploadโ attachments through a website to drive D if drive C is the one with no space? Can .NET, for example, first copy it to a temporary folder on drive C?
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
source share