Hi All,
I am trying to upload an image from my local machine to my remote server. Here is the most relavent code:
When I run this I get this message:
I am lost as to what to do with this. I assume that I can alter my settings to give permissions on my machine that will allow the file to be uploaded. I need to get these images from anyone's machine who is using this ASP.NET page regardless of settings. I wouldn't say my security settings are that high and there is no firewall etc.
How do I get round this problem please?
Thanks, Dave.
I am trying to upload an image from my local machine to my remote server. Here is the most relavent code:
Visual Basic:
If (filePictureDialog.PostedFile.FileName.Length > 0) Then
imageString = System.IO.Path.GetFileNameWithoutExtension(filePictureDialog.PostedFile.FileName)
Try
filePictureDialog.PostedFile.SaveAs(imageString)
imgPigJaw.ImageUrl = imageString
Catch ex As Exception
txtAdditionalInformation.Text += ex.ToString
End Try
End If
System.UnauthorizedAccessException: Access to the path "E:\WINDOWS\system32\jigsaw2" is denied.
I am lost as to what to do with this. I assume that I can alter my settings to give permissions on my machine that will allow the file to be uploaded. I need to get these images from anyone's machine who is using this ASP.NET page regardless of settings. I wouldn't say my security settings are that high and there is no firewall etc.
How do I get round this problem please?
Thanks, Dave.