Click here to Skip to main content
15,867,860 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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..

VB
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.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900