I am a c# developer running in to issues with a program of mine that tries to transfer files on to a shared folder on a computer which is on a different domain. i.e my windows service sits on domain 'X' and the shared folder is on domain 'Y'. I am trying to map the folder on to Domain 'X' in my program using the "net use" command. and I am getting a "network not found" error. I am guessing this is because the shared folder is on domain "Y" and domain X has issues while trying to connect to a computer on domain Y. The net.exe command works perfectly with shared folders inside of domain X. Is there a way i can work through this issue. My only option is to map a drive on to my hosting computer programatically. I would highly appreciate any help on this issue since i am out of ideas :(
UPDATE: Got it working. I had to remove an extra backslash from the end of the shared folder name in order to get it to work from my c# service. That backslash ate up my day...Sorry guys. it turns out to be embarassing for me now.