A
Andrew R. Jones
Any ideas how to overcome this problem when accessing a network share within
an asp.net web app?
This runs internally on the network. The following is in my web.config:
<identity impersonate="true"/>
<authentication mode="Windows" />
I check WindowsIdentity.GetCurrent().Name before I attempt my directory
access. By default this has always been PC\ASPNET. Changing the
impersonate to true and turning off anonymous login and using integrated
windows login changes this to domain\user which works when I run it under
localhost. However, when I run it from another pc it fails even though the
user has the appropriate rights.
In testing IIS changes the only setting I found that gave me the desired
results was to force basic authentication in IIS. This gave the unwanted
popup login window when you launch the page, but did everything else
correctly. I was able to create directories assuming the user had the
appropriate rights.
Why would it work under basic and not windows integrated ... at least that
would prevent that extra popup? Under both setups the windowsIdentity Name
is the same.
Thanks,
Andrew
an asp.net web app?
This runs internally on the network. The following is in my web.config:
<identity impersonate="true"/>
<authentication mode="Windows" />
I check WindowsIdentity.GetCurrent().Name before I attempt my directory
access. By default this has always been PC\ASPNET. Changing the
impersonate to true and turning off anonymous login and using integrated
windows login changes this to domain\user which works when I run it under
localhost. However, when I run it from another pc it fails even though the
user has the appropriate rights.
In testing IIS changes the only setting I found that gave me the desired
results was to force basic authentication in IIS. This gave the unwanted
popup login window when you launch the page, but did everything else
correctly. I was able to create directories assuming the user had the
appropriate rights.
Why would it work under basic and not windows integrated ... at least that
would prevent that extra popup? Under both setups the windowsIdentity Name
is the same.
Thanks,
Andrew