问题
I have a very simple task on microsoft IIS (Which means 2 days of configuration hell)
I need to add a virtual directory that points to a different server (Shared folder).
I opened a user in the local and the remote servers and I can see the content of the folder, but when I try to copy something to that folder (from the code) I get access denied.
Of course that the user has a full control (shared and ntfs) but not matter what I'm doing I just can't make this simple task to work.
What have I missed? What should I do to make it work?
Thanks in advance - Tal.
回答1:
The problem can be solved by changing the appPoolIdentity to a local windows user that has permissions to read\write to the network virtual folder. The downside (at least from my experience) is performance, the IIS become slow very fast (30 online users in my case).
来源:https://stackoverflow.com/questions/42908601/access-to-shared-folder-as-a-virtual-directory-in-the-iis