reading directories and uploading without system.io

Hey all. I just purcahsed a shared hosting account with goDaddy only to find they have the system.io namespace blocked for security reasons. I create custom Content Management Systems for my clients and need the ability to upload files and read the contents of directories.

How can I do this without using System.IO I figured FTP could be a way, but I couldn't find a lot of examples ut there using ftp with c# to upload files or read directories.

It doesn't have to be FTP, it can be any other way, but does anyone know how

Thanks


Answer this question

reading directories and uploading without system.io

  • dzimmy

    If it works it works. My hosting costs me 140 a month :)

  • SavasCilve

    Yea - I always use exception handling. I just tried uploading (had to make the folder writable like you said) and it worked. SO GLAD their support was wrong.

    Do you suggest someone other than goDaddy This is my first time using them and the only reason I use them is because they seem to be the cheapest 2.0/SQL hosting I could find.

  • DLG007

    You're probably jacked if that is true.
    How do you know it is blocked Have you tried using some code If so what code have you tried to use Do you get an actual exception when using System.IO And if so what exception and how
    You should be able to access files within your directory and you can make sure you stay in your directories by doing a System.IO.Path.Combine(Server.MapPath("~/"), "foldrepath")


  • Bakerboy60

    Ouch - I do web development for a local City here in FL and do freelance websites on the side. GoDaddy charges me 7 I charge them 14 or 15 and that's fine with me.

    Having to maintain boxes here at work and have to deal with IIS and AppPools, DNS and all that *** from 8-5 is enough for me. I definately don't want to pay that much for a Virtual or Dedicated server and have to deal with the same stuff at home.

  • Surit Roy

    Thanks Marc - that worked.

    I've only been using C# for 6 or 7 months and I'm used to developing and publishing to our own local servers. I emailed godaddy twice about this and all they said was it wasn't possible, of course a lot of the guys in support aren't developers and are getting their answers from a database.

    I'm assuming this will work for uploading too - I'll give it a shot.

    Thanks again!

  • Fantonis

    Yep - the only important thing to remember about uploading is that you will probably need to make a specific folder writeable. This will most likely be done through some sort of Control Panel. I don't use GoDaddy - You should find out pretty quickly though if you get an exception when trying to write/save. Cheers.

  • reading directories and uploading without system.io