Create directory on a web server

  • Thread starter Thread starter Christian Pické
  • Start date Start date
C

Christian Pické

Hi,

I tried following code, but I get an execption "URI formats not supported"

Directory.CreateDirectory(@http://www.test.com/shop/images);

The path is not located on my own computers, but on the computers of an ISP.

Cannot I use Directory.CreateDirectory on a web server or is there something
else wrong with my code?

Many thanks in advance,

Christian
 
Hi Christian,

I don't know if it would work like this on a Net ISP server, with all
security disabled, but it does certainly not create a directory on a not Net
Server using this.

I hope this helps?

Cor
 
Hi,
You need to check if you have sufficient permission.
Also, when you try to create it thro' code the
impersonation would have occured thro IUSER_...

So, couple of things you need to check is "if there is
already a directory in teh same name"
second, if "IUSR_" has an admin permission ,but even then
it is not a worhty idea to create programmatically a
directory on the web server until and unless it is going
to be a private folder for the app to use.

Then if you are going to use a private folder for the app,
then why dont u create a folder internally as a temp
folder.

Probs if you can throw more light on why you need this i
might be able to help you.
 
Back
Top