开发者

How to access files on a different domain in C#

开发者 https://www.devze.com 2022-12-21 01:47 出处:网络
I need a way to acccess files on a fileshare from a different domain from my own? for example, I have here is an 开发者_如何转开发application that exists on a sever in Domain1 and this application nee

I need a way to acccess files on a fileshare from a different domain from my own? for example, I have here is an 开发者_如何转开发application that exists on a sever in Domain1 and this application needs to retrieve files from a server on Domain2.

Any ideas...


Does this help you in the right direction? I assume it's what your asking...

Map a Network Drive From Code for Cross-Domain File Copy.

The CodeProject link given on the site also gives the source code for downloading.


I recently had a similar issue and executing

net use \\machine.otherdomain myusername /USER:password

as part of the user's network logon was a solution for us. This is obviously not perfect but for our environment it was sufficient.

0

精彩评论

暂无评论...
验证码 换一张
取 消