Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Server Security > Intermittent "The network path was not found." & "Logon failure: .

Reply
Thread Tools Display Modes

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

 
 
Jay Khan
Guest
Posts: n/a

 
      06-02-2009
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;
}
 
Reply With Quote
 
 
 
 
Jay Khan
Guest
Posts: n/a

 
      06-03-2009
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;
> > }

>
>

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"...is not accessible. Network path not found" Also can't print. Jon Riley Windows Vista Networking 0 09-20-2009 03:36 PM
"The Network Path Was Not Found" (joining domain) hozzie Windows Server 6 07-06-2009 05:09 PM
Computers getting "The network path was not found" message LJH Server Networking 10 04-17-2009 05:10 PM
join domain "the network path was not found" Jaz Active Directory 7 12-16-2005 11:28 AM
Re: DC cannot access registry.pol - "network path not found" Glenn L Active Directory 0 12-21-2004 11:45 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59