[RESOLVED] Need to create a directory from within my Web App?
How do I create a directory on my web server from within my web app?
Thanks,
Re: Need to create a directory from within my Web App?
Hey,
The System.IO namespace, contains a number of classes, including "Directory", which provides the functionality.
This will require permissions on the web server though.
Gary
Re: Need to create a directory from within my Web App?
Gary,
I wondered about that but thought it might be different since it was a web server. Guess it doesn't matter though.
Thanks,
Re: [RESOLVED] Need to create a directory from within my Web App?
If it's a shared hosting server, then you need to start worrying about security and permissions (such as on a medium host, you should only be able to do this within your own virtual directory rather than 'anywhere')
Re: [RESOLVED] Need to create a directory from within my Web App?
Mendhak,
This is a shared web server. As far as security and permissions are concerned...their are only going to be a handful of users (less than 20). What kind of security do I need to worry about? The database I'm using will only have contact information in it.
Thanks,
Re: [RESOLVED] Need to create a directory from within my Web App?
Hey,
Basically, it comes down to what permissions you have been assigned to write to the disk of the web server. You should have at least some permissions to write to your own allocated part of the file system (virtual directory), but it really comes down to the host you are using, and what they allow you to do.
Have you enquired about this? Best way would be to try it, and see what happens.
Gary
Re: [RESOLVED] Need to create a directory from within my Web App?
Quote:
Originally Posted by
blakemckenna
Mendhak,
This is a shared web server. As far as security and permissions are concerned...their are only going to be a handful of users (less than 20). What kind of security do I need to worry about? The database I'm using will only have contact information in it.
Thanks,
I'm basically talking about medium trust. Find out if your host runs under medium trust. Then, set your development environment or test box to medium trust and try running your application to see if everything's in order and that you can actually create a directory.
Re: [RESOLVED] Need to create a directory from within my Web App?
Thanks Mendhak...I'll look into this!