Re: Listing files on network share

From: Scott Allen (bitmask_at_[nospam)
Date: 10/22/04


Date: Fri, 22 Oct 2004 09:49:45 -0400


If delegation isn't working in your environment, there are at least
two other options:

One solution is to run the ASPNET worker process under a domain
account (by modifying the processModel element in machine.config.

Another solution is to use <identity impersonate="true"
userName=">domain>\<account>" password="<password>"/>. This
impersonates with a fresh set of credentials that can make another
network hop.

HTH,

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Fri, 22 Oct 2004 02:58:05 GMT, medvitz <medvitz@medvitz.net> wrote:
>
>I'm writing an ASP.NET application that requires that a list of files from
>a network shre be displayed on the site.  We are using windows integrated
>authorizations and impersonation.  Whenever I try to access the network
>share I get the following error.
>
>DirectoryNotFoundException saying "Could not find a part of the path
>"\\server\share"
>
>In looking to solve this, I have come across multiple items discussing the
>double hop authentication issue, which describes seting up and using
>delegation.  I have tried this, whith no luck ( as an aside, the same
>assembly accesses AD without issue ).
>
>Any help, Tips, or pointers would be greatly appreciated
>
>Dave


Relevant Pages

  • Re: access to network file server through web server denied
    ... Before I check with the network team to ... see whether the network has been configured with "Delegation", ... On our local developer's web server (It can be IIS 5 on Windows XP ...
    (microsoft.public.inetserver.iis.security)
  • Re: LsaLogonUser - access to network resources
    ... target services must be specified. ... setting in AD U&C and you must configure constrained delegation. ... > and I managed to get access to the same network resources using ... > logon on that machine (Ctrl-Ald-Del and logon as domain user with the same ...
    (microsoft.public.platformsdk.security)
  • Re: Troubleshoot Security Issues
    ... You can put a trace on the network -or- you can dump out all the values ... NTLM then NTLM was used. ... impersonate="true"> and set authentication to Windows then it should ... I'm trying to set up a delegation secnario, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: impersonate/delegate problem
    ... you don't have delegation so I'm not sure if you have ... > webserver from within AD users and computers) to pass the ... > on our production network. ... > request process from ...
    (microsoft.public.dotnet.framework.aspnet.security)