I have a problem that has been doggin me for 2 days now.
I have a web app that needs to access files on another server in the same
domain. but nothing that I have tried has allowed the web app access to the
files.
the system is set up as follows:
Server 2: Windows 2000 server contains report files needed by the webapp
Server 1: Window 2003 server
iis server with website
asp.net dll used to access files on server 2
web.config settings are
<authentication
mode="Windows" />
<identity impersonate="true" />
the dll code used to test file access is
Dim strTest As String
strTest = "User Name: " &
System.Security.Principal.WindowsIdentity.GetCurre nt.Name() & vbCrLf
strTest = strTest & "File Name: " & strZipFileName & vbCrLf
Dim ofile As File
strTest = strTest & "Exists: " &
ofile.Exists(strZipFileName).ToString() & vbCrLf
the output from the system is
User Name: <domain\user name>
File Name: \\uncpath\file.zip
Exists: False
but the file does exist and when I audit the logons on server 2 I am not
seeing attempts by <domain\user name>. instead NT AUTHORITY\ANONYMOUS LOGON
is login on to Sever 2 what happened to impersonation? What am I doing wrong?