IIS应用程序池访问网络上的远程目录 [英] IIS application pool access to remote directory on network

查看:114
本文介绍了IIS应用程序池访问网络上的远程目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用File.Create(字符串路径)在.ashx asp.net处理程序中的网络上的远程目录中创建文件

I am trying to create file in remote directory on network within .ashx asp.net handler using File.Create(string path)

我收到错误的访问权限这条路被拒绝了。我尝试将身份设置应用程序池更改为网络服务,更改为本地系统,仍然拒绝访问。

I am getting error that access to this path is denied. I tried to change identity setting application pool to 'network service', to 'local system', still getting access denied.

通过文件系统管理器我可以创建提到的文件远程目录没有问题。

Via file system manager I can create files in mentioned remote directory with no problems.

也许有人遇到过这种问题?什么设置在应用程序池中可以用来解决这个问题?

Maybe someone had this kind of problem? What setting could be useful in application pool to solve this issue?

提前致谢!

推荐答案

您需要创建具有相应权限的网络用户,并指定应用程序池标识以使用此网络用户。

You'll need to create a network user that has the appropriate rights, and assign the Application Pool Identity to use this network user.

这篇关于IIS应用程序池访问网络上的远程目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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