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
"J Wolfgang Goerlich" wrote:
> Interesting. Is there a time delay between when the last file was
> written and when the error occurs? In other words, does it work fine
> when the files are written every couple of seconds, but fail when more
> than three minutes elapse between one write and the next?
>
> --
> J. Wolfgang Goerlich
> http://www.jwgoerlich.us
> http://www.linkedin.com/in/jwgoerlich
>
> On Jun 2, 7:56 pm, Jay Khan <Jay K...@discussions.microsoft.com>
> wrote:
> > 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;
> > }
>
>