Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

System.IO.IOException: Logon failure when stringwriting a file.

Status
Not open for further replies.

qwert231

Programmer
Sep 4, 2001
756
US
I am trying a stringWrite function to append a text file on another server. Here is the code:
Code:
Dim sw As IO.StreamWriter = IO.File.AppendText("\\serverName\weborders\tmp ord-h.txt")

But I get the error: System.IO.IOException: Logon failure: unknown user name or bad password.

This server is inside my firewall, while the webserver is in the DMZ. But I haven't tried there yet. I am currently trying from my test system which is also inside the firewall.

Any help please?!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top