Cannot create a sub directory from aspx page.

  • Thread starter Thread starter jbhan
  • Start date Start date
J

jbhan

Hi,

I am trying to create a sub directory from my aspx page.
The path is correct and there is nothing wrong with my
code since it runs fine on my local but on the site
hosted by a web hosting company it fails.
The error I get is :

Could not find a part of the path "E:\"

There is no problem in adding and deleting or modifying
files its just the create directory which is failing.

The aspnet user has all the permissions on the web app
folder.
Has any had this problem before? Is there anyway I can
replicate it on my local or any ideas on which permission
are needed to make it work? Any ideas would really be
appreciated.

Thanks,
jbhan.
 
Hi Xavier,

Thanks for the link. It contains some very useful
information.
But my problem still persists. No matter what I do I get
the same error.
I read somewhere that this error happens if the read
permission on the root drive is not given.
I tried to replicate the error on my local machine by
removing the read permission for the aspnet user for my
root drive but when application is run it still creates
the folder successfully! On the live it fails.

The frustrating part is that I can't even replicate the
problem on my local!!

Any ideas?

Thanks,
Jbhan
 
Yes the path is correct and I have no problem creating files, its only
creating directories which are not working.
 
Back
Top