title: There is not enough space on the disk on ASP.NET application
body: <p>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.<br>
  My only web site saves the attachments to the D drive.<br>
  My C drive has got no space on it (for arguments sake 0kb).</p>
  
  <p>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?</p>
  
  <p>Here's the error:</p>
  
  <pre><code>[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
  </code></pre>