简体   繁体   English

使用IIS 7管理器设置权限

[英]use IIS 7 Manager to set permissions

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: 我按照此处的步骤操作,但是不知道如何设置权限,我需要创建目录并将zip文件解压缩到其中,并在CreateDirectory行上拒绝访问:

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

How to add ASP.NET 4.0 as Application Pool on IIS 7, Windows 7 如何在IIS 7,Windows 7上将ASP.NET 4.0添加为应用程序池

here my IIS 7 manager page 这是我的IIS 7管理器页面 在此处输入图片说明

please help? 请帮忙?

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. 您可以通过Windows资源管理器而不是IIS管理器来执行此操作。

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. 编辑该目录的权限,添加您的应用程序池正在使用的用户,然后为该用户授予对该文件夹的“修改”权限。

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. 假设您正在创建目录C:\\Files\\ZipTarget\\Scorm ,并且C:\\Files\\ZipTarget目录已经存在,则需要向应用程序池标识用户授予对C:\\Files\\ZipTarget目录的“修改”权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM