you must give permission on the remote machine... to the user that the iis is running
2009/11/17 Pratiksha Saxena <[email protected]> > Hi, > > i have a web application in which on button_click i have written code for > File.Copy > > File.Copy(@"e:\Text.txt", @"\\okh-lb-labs-030\\D$\\MT\\Text.txt"); > > > but i gives error *Logon failure: unknown user name or bad password.* > * > * > *The files are in Intranet.* > Source is e:\Text.txt > Destination is \okh-lb-labs-030\\D$\\MT\\Text.txt > > If i copy on my local system it is fine but on network it gives error.i > tried even giving rights to MT folder but no use. > > Please help. > > Pratiksha >
