I am using the code below to save a file to a network location. It works in development and on the webserver. But if I go to a client machine using my login credentials, the file isnt saved? I have my app pool set to run under my credentials so that should
be the issue. Any ideas? Thanks!
If FileUpload1.HasFile Then
Try
FileUpload1.SaveAs("\\Server\data\Files\" + FileUpload1.FileName)
Catch ex As Exception
End Try
Else
'Label1.Text = "You have not specified a file."
End If
MKozlowski
Member
500 Points
573 Posts
FileUpload1.SaveAs does not work correctly?
Apr 30, 2012 07:44 PM|LINK
Hi,
I am using the code below to save a file to a network location. It works in development and on the webserver. But if I go to a client machine using my login credentials, the file isnt saved? I have my app pool set to run under my credentials so that should be the issue. Any ideas? Thanks!
If FileUpload1.HasFile Then Try FileUpload1.SaveAs("\\Server\data\Files\" + FileUpload1.FileName) Catch ex As Exception End Try Else 'Label1.Text = "You have not specified a file." End If