I'm trying to copy a file with the command :
File.Copy(source, dest, true);
when "dest" is address of remote computer . When I run this command i got error that "Access to path is denied".
I understood that the problem is caused by the fact that i didn't have permission to the remote computer, so I want to connect to the remote computer before I trying to copy the file.
How can I log in and set the credentials to the computer using .NET Core?
thank you.