Writing files and determining directory

Discussion in 'ASP.NET 2.0' started by glenharvy, Sep 11, 2008.

  1. Hi,

    My asp.net application creates and writes to files. Works well on my IIS home server but I recall having problems originally with permissions.

    Is there any reason why it's not working when I upload it. Do I need add anything to my web.config file?

    Also, how do I determine the root directory of my web application as "~/directoryToWriteTo/" doesn't seem to work.

    TIA,
     
  2. Hi,
    In your Control Panel you can create permissions for folders and you can do it with your web.config

     

Share This Page