Incorrect out of disk space exception

Discussion in 'ASP.NET 2.0' started by jonrmorgan, Dec 12, 2005.

  1. Hi,

    I'm getting the following exception when I try to write to a file:


    Server Error in '/' Application.


    There is not enough space on the disk.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.IO.IOException: There is not enough space on the disk.


    Source Error:





    Code:
    Line 100:        Next
    Line 101:
    Line 102:        Dim myStream As New FileStream(Current.Server.MapPath(transfile), FileMode.OpenOrCreate, FileAccess.Write, FileShare.Read)
    Line 103:        myStream.Position = myStream.Length
    Line 104:        Dim sw As New System.IO.StreamWriter(myStream)
    Source File: E:\web\fmalivecom0\htdocs\App_Code\Helpers.vb Line: 102

    Stack Trace:





    Code:
    [IOException: There is not enough space on the disk.
    ]
       System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +2015383
       System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +998
       System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +114
       AppHelpers.StoreTransaction(NameValueCollection nvcol) in E:\web\fmalivecom0\htdocs\App_Code\Helpers.vb:102
       Processing_Notify.Page_Load(Object sender, EventArgs e) in E:\web\fmalivecom0\htdocs\processing\Notify.aspx.vb:40
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       System.Web.UI.Control.LoadRecursive() +47
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
    




    I'm nowhere near using up my disk space. Any idea what the problem might be ?





    Thanks for your help.





    Jon
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    You probably haven't assign quota for the aspnet user.

    Check in your user/quota mgr in the control panel.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page