XmlTextWriter does not write over network

  • Thread starter Thread starter metehan
  • Start date Start date
M

metehan

I am trying to write a file to network box with below code but getting
error
THis code
XmlTextWriter writer = new
XmlTextWriter("\\155.162.166.16\\d\\InetPub\\wwwroot\\site.help.com\\Folder\\test.htm",null);
Produce
"C:\\155.162.166.16\\d\\InetPub\\wwwroot\\site.help.com\\Folder\\test.htm".
this error I think trying write the box that i do the execution
How can i write above code over network

Cheers.
 
Hi,

Try:
new XmlTextWriter(
@"\\155.162.166.16\d\InetPub\wwwroot\site.help.com\Folder\test.htm",
null )

Hope this helps,
/Nico
 
He Nico

What is @ does ?
Thanks mate!

Nico Vrouwe said:
Hi,

Try:
new XmlTextWriter(
@"\\155.162.166.16\d\InetPub\wwwroot\site.help.com\Folder\test.htm",
null )

Hope this helps,
/Nico
 
Eventhough i have access rights to this box i get an error

Additional information: Logon failure: unknown user name or bad password.

Any reason?
Do i need to pass this guys?
 
Back
Top