G
Guest
Hi,
I have a problem in a peace of code were i'm doing a file copy using
File.Copy. The Source is local and the target is a remote machine.
Example: File.Copy(C:\temp\hi.txt, \\myremote\c$\temp\hi.txt, true);
This API is run from a web service that exposes it. The problem is as follows:
1) I request a page (On the web service machine) from my web server (Note
this page asks what file you need for example).
2) When i click on the submit button the file is copied just fine
3) Now i got to another client machine int he same domain and i log in as
the domain admin ect..
4) I request my client page so i can request a file to be copied.
5) I click ont he submit button and i get an error in my log stating that it
could not find the file specified?
The messed up part is that i have sat at the debugger side by side and
walekd the code on both machines ( one attached to the remote machine and one
attached local) and i get the same information thru the code except when i
get to the File.copy statment, the remote blows up with the file not found
error and the other works just fine. Both of them talk to the same web server
and web service so thisi s something i can't even start to figure out.
Thanks for any help!
I have a problem in a peace of code were i'm doing a file copy using
File.Copy. The Source is local and the target is a remote machine.
Example: File.Copy(C:\temp\hi.txt, \\myremote\c$\temp\hi.txt, true);
This API is run from a web service that exposes it. The problem is as follows:
1) I request a page (On the web service machine) from my web server (Note
this page asks what file you need for example).
2) When i click on the submit button the file is copied just fine
3) Now i got to another client machine int he same domain and i log in as
the domain admin ect..
4) I request my client page so i can request a file to be copied.
5) I click ont he submit button and i get an error in my log stating that it
could not find the file specified?
The messed up part is that i have sat at the debugger side by side and
walekd the code on both machines ( one attached to the remote machine and one
attached local) and i get the same information thru the code except when i
get to the File.copy statment, the remote blows up with the file not found
error and the other works just fine. Both of them talk to the same web server
and web service so thisi s something i can't even start to figure out.
Thanks for any help!