R
Randy
Hello All,
I'm getting a strange error when trying to perform a file upload. Here's the
lines that uploads the file...
sSaveLocation = Server.MapPath("PFPDocs") + "\\" + fileName;
fileInput.PostedFile.SaveAs(sSaveLocation);
When it runs, I'm getting a "Access to the path xxx is denied" error. On the
server (Server 2003) I've given the ASP.NET and Everyone Full Control but
still I get the error. I've also given IUSR_machinename Full Control and I
still get the error.
One thing that is strange and I'm not sure if it's a problem, when the error
is reported in the dialog, it states that...
Access to the path "C:InetpubwwwrootPFPAppPFPDocsMyFile.xls" is denied
In the above error the "\"'s are not in there. I'm not sure if this is the
reason it won't upload the file or if it is a permissions thing.
Thanks
I'm getting a strange error when trying to perform a file upload. Here's the
lines that uploads the file...
sSaveLocation = Server.MapPath("PFPDocs") + "\\" + fileName;
fileInput.PostedFile.SaveAs(sSaveLocation);
When it runs, I'm getting a "Access to the path xxx is denied" error. On the
server (Server 2003) I've given the ASP.NET and Everyone Full Control but
still I get the error. I've also given IUSR_machinename Full Control and I
still get the error.
One thing that is strange and I'm not sure if it's a problem, when the error
is reported in the dialog, it states that...
Access to the path "C:InetpubwwwrootPFPAppPFPDocsMyFile.xls" is denied
In the above error the "\"'s are not in there. I'm not sure if this is the
reason it won't upload the file or if it is a permissions thing.
Thanks