Author: ooples | Posted on: 2/2/2010 6:45:05 PM | Views : 342

I can't seem to create a directory on a remote server even though I have given permissions for the asp.net application for all users. I gave full control to the Asp.net user, local computer user, administrators, Network Service, etc and I don't know what else to try. My code is below:


protected void btnUpload_Click(object sender, EventArgs e) { Guid originalGuid = Guid.NewGuid(); string fileName; string filePath; string currentDir; if ((upContactUs.HasFile) && (Page.IsValid)) { // Get the name of the file to upload. fileName = Server.HtmlEncode(upContactUs.FileName); // set current directory Directory.SetCurrentDirectory(@"C:\Inetpub\wwwroot\Test\Uploads"); // get current directory currentDir = Directory.GetCurrent ...

Go to the complete details ...