when u run it using dot net ide it will work becoz asp.net have a restricted user on IIS but when u user it with ie it will not it require a user u have to provide it in web config file.
ashish On Tue, Nov 17, 2009 at 5:19 PM, Pratiksha Saxena < [email protected]> wrote: > 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 >
