Access permission

Collapse

Unconfigured Ad Widget

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • nhetz
    Junior Member
    • Aug 2006
    • 1

    Access permission

    trying to run the following code on:
    protected void Button1_Click(object sender, EventArgs e)
    {
    if (NewFolderName.Text = "")
    {
    try
    {
    string newFolderName = @"c:\domains\[domainname]\wwwroot\Uploads\aaa";
    Directory.CreateDirectory(newFolderName);
    Page_Load(this, new EventArgs());
    }
    catch (Exception ex)
    {
    message.Text = "

    " + ex.Message +"

    ";
    }
    }
    }

    generate the following exception:

    Access to the path \c:\domains\[domainname]\wwwroot\Uploads\aaa; is denied

    please advise.
    Last edited by admin; 08-12-2015, 07:27 AM.
  • Manuel_
    Banned
    • May 2005
    • 120

    #2
    AccuWeb.Cloud
    I dont know the scripting but if you have live URL or error then paste it here so that I can check it for any server related error and can assist you
    Last edited by admin; 08-12-2015, 07:27 AM.

    Comment

    Working...
    X