RE: aspx page is unable to read/write files that are located on a network share

From: Holly Mazerolle (hollymamsft_at_online.microsoft.com)
Date: 11/30/03


Date: Sun, 30 Nov 2003 18:15:34 GMT

Hi,
   When accessing remote files from an ASP.Net application, here are your
options:

Run the process as a Domain Account
Use Basic Authentication
Use Anonymous Auth with a domain account as the Anonymous Account

What you are experiencing is a delegation issue. If you are using
impersonation and you are impersonating an account local to the web server,
that account must also exist locally on the file server with the same
password associated with it. Using a domain level account will allow you to
avoid the need for the account to exist locally on the file server.
If your network uses Active Directory you can get this to work as you have
described in your issue by setting up Kerberos delegation.
810572 HOW TO: Configure an ASP.NET Application for a Delegation Scenario
  http://kb/article.asp?id=Q810572

This posting is provided "AS IS" with no warranties, and confers no rights.



Relevant Pages

  • Re: "Edit Users..." Menu Item Disabled in Telephony Management Sna
    ... On the member server, make sure the domain account you are using to log on ... Running "tapicfg show" revealed that I had no Active Directory TAPI ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Domain could not be contacted problem
    ... > can either make the process run under a domain account, ... > To impersonate a domain account, you generally do this by enabling ... > impersonating the authenticated user in IIS. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Domain could not be contacted problem
    ... > can either make the process run under a domain account, ... > To impersonate a domain account, you generally do this by enabling ... > impersonating the authenticated user in IIS. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Kerberos Problem with App Pool running as Domain Account
    ... account, perhaps IIS itself has to as well (instead of the IUSR_IISSERVER ... An error occurred during logon ... Caller User Name: IISSERVER$ ... had to change this to use a domain account because our DR server needed ...
    (microsoft.public.inetserver.iis.security)
  • Re: WSE 3.0 Kerberos Auth and issue with Windows XP ASPNET Account
    ... Finally I made it work with a Domain Account with a ... work with ASPNET account). ... Network Services account for IIS process pool). ... > 4.- Create an arbitrary SPN for the domain account, with setspn.exe, at my DC. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)

Loading