L
Langedal, Roger
I'm trying to setup a simple test on writing to a file on an UNC share from
an asp.net 2.0 webpage. This is whats happing in default.aspx:
-----------------------------------------------------------------------------------
Dim path As String = "\\remoteserver\testshare"
Response.Write(User.Identity.Name)
My.Computer.FileSystem.WriteAllText(path & "\myfile.txt", "life's good",
True)
-----------------------------------------------------------------------------------
impersonation is enabled and windows auth is setup in IIS 6.
1. When I run this on my Vista PC - I'm correctly authenticated and the file
is written perfectly to the remote share.
2. If I move my webapp to a Windows 2003/IIS 6 webserver and create a share
on this server \\mywebserver\testshare everything still works perfectly
3. But - I if I try to write to a REMOTE share i.e \\myotherserver\testshare
it fails with "file not found" - no further explanation :-S I've tried to
scan for activity on the remote servers filesystem with Filemon - but it
does'nt even look like it tries to access the share at all.... Permissions
are set to everyone both at NTFS and share permissions at this share.
ANY ideas guys??
Regards,
Roger
an asp.net 2.0 webpage. This is whats happing in default.aspx:
-----------------------------------------------------------------------------------
Dim path As String = "\\remoteserver\testshare"
Response.Write(User.Identity.Name)
My.Computer.FileSystem.WriteAllText(path & "\myfile.txt", "life's good",
True)
-----------------------------------------------------------------------------------
impersonation is enabled and windows auth is setup in IIS 6.
1. When I run this on my Vista PC - I'm correctly authenticated and the file
is written perfectly to the remote share.
2. If I move my webapp to a Windows 2003/IIS 6 webserver and create a share
on this server \\mywebserver\testshare everything still works perfectly
3. But - I if I try to write to a REMOTE share i.e \\myotherserver\testshare
it fails with "file not found" - no further explanation :-S I've tried to
scan for activity on the remote servers filesystem with Filemon - but it
does'nt even look like it tries to access the share at all.... Permissions
are set to everyone both at NTFS and share permissions at this share.
ANY ideas guys??
Regards,
Roger