Dim FilePath As String = "\\sigar" & "\pdf\audits\" & ""
This will create the string \\sigar\pdf\audits\
. You could simplify the line to be:
Dim FilePath As String = "\\sigar\pdf\audits\"
Server.MapPath
is used to translate a virtual path in your web site to what the file path is on the server. In other words, you don't need to use it at all. Change your second line to:
FileUpload1.SaveAs(FilePath + FileName)
If that isn't working, then it may be that the identity that your application pool is running under does not have permissions to write a file in the specified path. Try adjusting the share and/or file permissions on sigar
.
Update
To just copy a file, use File.Copy:
File.Copy("\\serverA\path\to\file", "\\serverB\path\to\file")