Access files from network share in c# web app

前端 未结 5 749
终归单人心
终归单人心 2020-12-01 11:29

I have a web application that needs to read (and possibly write) files from a network share. I was wondering what the best way to do this would be?

I can\'t give the

5条回答
  •  一生所求
    2020-12-01 12:17

    Given everyone already has domain accounts. Try IIS integrated authentication. You will get an ugly logon box off network but your creds should pass down to the file share.

    @lomaxx
    Are you saying that only you have perms to the share or that you manually mapped it to a drive letter. If the later you can use ucn \host\share the same way you would use a c:\shared_folder.

    Random Would it be a burden to mirror the share to a local folder on the host? I hear ROBOCOPY is pretty handy.

    Another Idea. Run IIS on your target share you can read via http and if you need to write investigate webdav.

提交回复
热议问题