G
Guest
With XPpro, I am programmatically creating sub-folders within the virtual
directory of my app. I programmatically set read/write permissions and then
successfully write some files to the directory. All of this works fine.
But when I try to browse the new directory through IE, it does not see it.
The error message is:
HTTP 403.1 Forbidden: Execute Access Forbidden
Internet Information Services
The code to create the directory is:
Dim fullPath As String = Request.PhysicalApplicationPath &
"userResources\" & newUserDir
Dim di As DirectoryInfo = New DirectoryInfo(fullPath)
di.Create()
' now to set the permissions
Dim f2 As New FileIOPermission(FileIOPermissionAccess.Read,
fullPath)
f2.AddPathList(FileIOPermissionAccess.Write Or
FileIOPermissionAccess.Read, fullPath)
The directory structure is this (where dir1 is the dynamically created dir):
c:\iNetpub\wwwRoot\myApp
c:\iNetpub\wwwRoot\myApp\userDirectories\dir1
c:\iNetpub\wwwRoot\myApp\userDirectories\dir1\graphic_that_wont_display.gif
directory of my app. I programmatically set read/write permissions and then
successfully write some files to the directory. All of this works fine.
But when I try to browse the new directory through IE, it does not see it.
The error message is:
HTTP 403.1 Forbidden: Execute Access Forbidden
Internet Information Services
The code to create the directory is:
Dim fullPath As String = Request.PhysicalApplicationPath &
"userResources\" & newUserDir
Dim di As DirectoryInfo = New DirectoryInfo(fullPath)
di.Create()
' now to set the permissions
Dim f2 As New FileIOPermission(FileIOPermissionAccess.Read,
fullPath)
f2.AddPathList(FileIOPermissionAccess.Write Or
FileIOPermissionAccess.Read, fullPath)
The directory structure is this (where dir1 is the dynamically created dir):
c:\iNetpub\wwwRoot\myApp
c:\iNetpub\wwwRoot\myApp\userDirectories\dir1
c:\iNetpub\wwwRoot\myApp\userDirectories\dir1\graphic_that_wont_display.gif