asp.net中的createdirectory提供未经授权的问题 [英] createdirectory in asp.net giving unauthorized issue
本文介绍了asp.net中的createdirectory提供未经授权的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
使用createdirectory函数时出现未经授权的访问问题.
我的应用程序部署在Windows 7上.
我在c://ABC//BCD文件夹中创建目录.我已授予BCD文件夹的权限
对于IISuser和IUser,但仍然面临相同的问题.
Hi All,
I am getting unauthorized access issue when using createdirectory function.
My application is deployed at windows 7.
I am creating directory in side c://ABC//BCD folder. I have given permission to a BCD folder
for IISuser and IUser, But still facing same issue. Can any one help me?
推荐答案
请确保ABC,BCD
文件夹是托管站点的(子文件夹)一部分. 如果没有,那么您将无法在其中创建文件夹..
解决方案:
创建一个站点并将其托管在IIS中的c://ABC
文件夹中.并授予该文件夹的完全许可权,那么您可以从其他站点访问该文件夹.
Make sure that theABC,BCD
folder is part of(sub folder) the Hosted Site.
if not, then you wont be able to Create folder in it..
Solution:
Create a site and host it in the IIS forc://ABC
folder. and give full permission for that folder, then you can access the folder from other site..
授予许可权还不够. Web应用程序在沙盒环境中执行,该环境不允许它们访问任何服务器端文件对象,但为您的站点配置的根目录下的对象除外.
—SA
Giving permission is not enough. Web applications are executed in the sandboxed environment which does not allow them to access any server-side file objects except those under the root directory configured for your site.
—SA
这篇关于asp.net中的createdirectory提供未经授权的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文