S
Stelrad Doulton
Hi,
I am having a strange problem on IIS 6.0.
I am trying to create directories under a virtual directory on the fly to
which I will upload files and retrieve these files later. I am having 2
problems:
1. I am using the code below to create a directory:
string path = Path.GetDirectoryName(context.Request.PhysicalPath);
if(!Directory.Exists(path))
Directory.CreateDirectory(path);
When I do this I get entries in the DefaultAppPool list for each directory
AND new virtual directories with the same name!
2. I am also unable to retrieve that data from these folders. I can navigate
down to the directory which holds the data but cannot access it. For example
if I started at www.someplace.com/root/ I may have added ID/IN making
www.someplace.com/root/ID/IN using the technique listed above. With
directory listing on I can navigate right down to this folder but if I then
click on the actual file that is in this folder I get a 404 error!
Can anyone shed any light on this?
Cheers
I am having a strange problem on IIS 6.0.
I am trying to create directories under a virtual directory on the fly to
which I will upload files and retrieve these files later. I am having 2
problems:
1. I am using the code below to create a directory:
string path = Path.GetDirectoryName(context.Request.PhysicalPath);
if(!Directory.Exists(path))
Directory.CreateDirectory(path);
When I do this I get entries in the DefaultAppPool list for each directory
AND new virtual directories with the same name!
2. I am also unable to retrieve that data from these folders. I can navigate
down to the directory which holds the data but cannot access it. For example
if I started at www.someplace.com/root/ I may have added ID/IN making
www.someplace.com/root/ID/IN using the technique listed above. With
directory listing on I can navigate right down to this folder but if I then
click on the actual file that is in this folder I get a 404 error!
Can anyone shed any light on this?
Cheers