使用IIS 7管理器设置权限 [英] use IIS 7 Manager to set permissions

查看:624
本文介绍了使用IIS 7管理器设置权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我跟着这里的步骤,但不知道怎样设置权限,我需要创建一个目录并解压缩zip文件到它并获得对CreateDirectory行否认:

I followed the steps in here but do not know how to setup permissions, i need to create a directory and unzip a zip file into it and get access denied on the CreateDirectory line:

string zipCurFile = model.ScormPackageFile.FileName;
string destinationDirectoryName = Path.GetFileNameWithoutExtension(zipCurFile);
Directory.CreateDirectory(destinationDirectoryName);

<一个href=\"http://stackoverflow.com/questions/4890245/how-to-add-asp-net-4-0-as-application-pool-on-iis-7-windows-7\">How到ASP.NET 4.0添加为应用程序池的IIS 7,Windows 7的

在这里我的IIS 7管理器页面

here my IIS 7 manager page

请帮忙?

推荐答案

您需要给修改权限的父目录的应用程序池身份的用户。这是东西,你将通过Windows资源管理器,而不是通过IIS管理器做的。

You need to give modify permissions for the parent directory to the app pool identity user. This is something that you would do through Windows Explorer and not through IIS Manager.

右键单击目标目录,然后选择属性>安全。编辑权限的目录中,添加您的应用程序池正在使用的用户,并赋予该用户修改权限到该文件夹​​。

Right-click the target directory and choose Properties > Security. Edit the permissions for that directory, add the user that your application pool is using and give that user Modify permissions to that folder.

假设你正在创建目录 C:\\文件\\ ZipTarget \\ SCORM C:\\ Files文件\\ ZipTarget 目录已经存在,你需要给应用程序池身份的用户修改权限到 C:\\文件\\ ZipTarget 目录

Assuming that you are creating the directory C:\Files\ZipTarget\Scorm and the C:\Files\ZipTarget directory already exists, you will need to give the app pool identity user Modify permission to the C:\Files\ZipTarget directory.

这篇关于使用IIS 7管理器设置权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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