Intermittent "The network path was not found." & "Logon failure: .

Discussion in 'Server Security' started by Jay Khan, Jun 3, 2009.

  1. Jay Khan

    Jay Khan Guest

    Hello,

    I am "intermittently" getting the "Logon failure: unknown user name or bad
    password." and "The network path was not found." when writing files to
    windows shares using UNC with IP Address (e.g. \\192.168.1.100\blah\foo.txt)
    from ASP.NET 2.0 C# Web App under IIS 6.0 on Windows 2003 SP2. I am using the
    Impersonation and userid/password in the web.config that are valid on remote
    shares. It works most of the time (I process about 50 requests/second);
    neither the target server nor the source machine shows any event log
    corresponding to these errors. I have also set the DisableDos registry entry
    and there is no Symantec or other antivirus product running on this machine.
    The target server shows only about 10% network utilization and 5% CPU. So,
    everything is lightly used. Below is the code that I am using for writing the
    files; any help would be appreciated:

    Thanks,

    Jay
    FileStream outputStream = null;
    try
    {
    outputStream = new FileStream(filepath, FileMode.Create);
    // code for writing removed for simplicity...

    }
    catch (Exception e)
    {
    errorlog.write("Error processing images", "Failed to
    open file: " + filepath+ " exception was: " + e.Message + " User: " +
    WindowsIdentity.GetCurrent().Name);
    }
    finally
    {
    if(outputStream != null)
    outputStream.Close();
    outputStream = null;
    }
     
    Jay Khan, Jun 3, 2009
    #1
    1. Advertisements

  2. Jay Khan

    Jay Khan Guest

    Hello,

    The files are continously written and there are no pauses in writing. The
    maximum delay between two file writes at least-busy times is about 3 seconds.
    and it seems that failed file creations with Logon failure or network path
    errors interleave with successful writes.

    Another fact to clarify, we get either "Logon failure: unknown user name or
    bad password." OR "The network path was not found" not both together as may
    be hinted by my original message.

    Thanks,

    Jay
     
    Jay Khan, Jun 3, 2009
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.