访问共享文件夹作为IIS中的虚拟目录 [英] Access to shared folder as a virtual directory in the IIS

查看:603
本文介绍了访问共享文件夹作为IIS中的虚拟目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在微软IIS上有一个非常简单的任务(这意味着2天的配置地狱)

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.

当然用户有完全控制权(共享和ntfs)但不管我在做什么我都可以不能让这个简单的任务发挥作用。

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?

提前致谢 - Tal。

Thanks in advance - Tal.

推荐答案

可以通过将appPoolIdentity更改为有权读取\write到网络虚拟文件夹的本地Windows用户来解决此问题。
缺点(至少从我的经验来看)是性能,IIS变得非常快(在我的情况下有30个在线用户)。

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).

这篇关于访问共享文件夹作为IIS中的虚拟目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆