PoppapumpJ
Programmer
I apologize if this is answered somewhere else but I have been unable to find it. I am about at my wits end.
I am attempting to upload a file to a folder using the file upload control. Here is the code behind my submit button
The error it gives states:
System.UnauthorizedAccessException: Access to the path 'c:\inetpub\ is denied.
Under security, I have allowed full control access to the following users
EVERYONE
ASPNET
IUSR_(machinename)
I am using Visual Web Developer 2005 and running in debug mode.
Any suggestions are greatly appreciated.
Thank you.
I am attempting to upload a file to a folder using the file upload control. Here is the code behind my submit button
Code:
Dim strFileType As String = FileUpload1.PostedFile.ContentType
Dim intFileSize As Integer = FileUpload1.PostedFile.ContentLength
Dim strpath As String
strpath = Server.MapPath("newpics")
FileUpload1.PostedFile.SaveAs(strpath)
The error it gives states:
System.UnauthorizedAccessException: Access to the path 'c:\inetpub\ is denied.
Under security, I have allowed full control access to the following users
EVERYONE
ASPNET
IUSR_(machinename)
I am using Visual Web Developer 2005 and running in debug mode.
Any suggestions are greatly appreciated.
Thank you.