Results 1 to 8 of 8

Thread: [RESOLVED] Need to create a directory from within my Web App?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Resolved [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,
    Blake

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    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

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    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,
    Blake

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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')

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    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,
    Blake

  6. #6
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    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

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [RESOLVED] Need to create a directory from within my Web App?

    Quote Originally Posted by blakemckenna View Post
    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.

  8. #8

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Re: [RESOLVED] Need to create a directory from within my Web App?

    Thanks Mendhak...I'll look into this!
    Blake

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width