Go Back   TechArena Community > Technical Support > Computer Help > Windows Security
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags:

Sponsored Links



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

Windows Security


Reply
 
Thread Tools Search this Thread
  #1  
Old 03-06-2009
Jay Khan
 
Posts: n/a
Intermittent "The network path was not found." & "Logon failure: .

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
  #2  
Old 04-06-2009
Jay Khan
 
Posts: n/a
Re: Intermittent "The network path was not found." & "Logon failur

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

  TechArena Community > Technical Support > Computer Help > Windows Security


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Intermittent "The network path was not found." & "Logon failure: ."
Thread Thread Starter Forum Replies Last Post
Error: "Logon Failure: Account Currently Disabled" B-P-ti Networking & Security 1 29-11-2011 03:20 AM
"The network path cannot be found." Chuck Lavin Vista Help 2 06-08-2010 06:03 PM
"The Network Path Was Not Found" (joining domain) hozzie Windows Server Help 6 06-07-2009 11:39 PM
Error "Logon Process Initialization Failure" Beneficence Operating Systems 3 02-03-2009 11:44 AM
DCOM got error "Logon failure: unknown user name or bad password." Seth Bell Small Business Server 3 04-10-2006 04:46 AM


All times are GMT +5.5. The time now is 04:39 PM.