文件夹和子文件夹用户权限 - 读/写访问权限 [英] Folder and Subfolder User rights - Read/Write access right

查看:268
本文介绍了文件夹和子文件夹用户权限 - 读/写访问权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





在我的项目中,我在项目文件夹的内容中创建了一个名为userspace的文件夹。在文件夹中,每次都会创建一个新文件夹用户登录到应用程序。该文件夹由登录应用程序的用户名命名。通过代码..



  Dim  userFolder  As   String  
rootFolder = System.Web.HttpContext.Current.Server.MapPath( /
userSpaceFolder = System.IO.Path.Combine(rootFolder, UserSpace
如果 System.IO.Directory.Exists(userSpaceFolder)然后
System.IO.Directory.CreateDirectory(userSpaceFolder)
结束 如果





现在,如果用户通过应用程序上传任何文件,它将存储到指定的文件夹中。现在的问题是,在项目的早期版本中,服务器Windows Server 2008中的这些权限对于同一段代码运行良好。我们将服务器迁移到Windows Server 2008 R2的那天,用户无法访问该文件夹。



请帮助。

解决方案

Hi,

In my project I am creating a folder called 'userspace' in the content of the project folder.Inside the folder a new folder creates each time an user logged into the application. The folder is named by the 'username' who loggs into the application. By the code..

Dim userFolder As String
        rootFolder = System.Web.HttpContext.Current.Server.MapPath("/")
        userSpaceFolder = System.IO.Path.Combine(rootFolder, "UserSpace")
        If Not System.IO.Directory.Exists(userSpaceFolder) Then
            System.IO.Directory.CreateDirectory(userSpaceFolder)
        End If



Now, if the user uploads any file through the application it stores into the specified folder itself. Now the thing is , in previous version of the project the server windows server 2008 where these rights were well running for the same piece of code. The day we have migrated the server into Windows Server 2008 R2 the user couldn't access the folder.

Please help.

解决方案

这篇关于文件夹和子文件夹用户权限 - 读/写访问权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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