Using IIs 6.0 on a Server 2003 box, and using ASP.NET I'm trying to do the
following code snippit...
Dim NewName As String = "\\network_share_path\edit_me.ppt"
Dim PubName As String = "\\network_share_path\show_me.ppt"
Dim PubFile As System.IO.File
If PubFile.Exists(PubName) Then
PubFile.Move(PubName, PubName + "BAK" + Format(Now, "hhmmss-MMddyyyy"))
End If
PubFile.Copy(NewName, PubName)
to replace one file that is displayed on a monitor with another that has
been edited. I get System.UnauthorizedAccessException errors. the
\\network_share_path\ is on a different server on the same domain.
Impsonate = true is set in the web.config file. I've also tried
\\IIsserver\shared_path\show_me.ppt , since I don't have admin on the
\\network_share_path\ machine but I do on the IIs server. I've tried using
absolute paths and relative paths on the server. I've checked the
permissons both on the share side and the file path side (on the IIS
machine) and even tried tossing the EVERYONE account with full control. I
tried adding the share as a virtual directory and assigning write
permissions to the ASP.NET page.
Got me stumped, about out of ideas of what else to try.
Thanks in Advance!
Stu