Access denied to network share using Windows Authentication

From: RayS (rspencer@unumprovident.com)
Date: 03/25/03


From: rspencer@unumprovident.com (RayS)
Date: 25 Mar 2003 07:06:12 -0800


I have an ASP.NET application with the following settings:

IIS:
Anonymous access OFF
Integrated Windows authentication ON

Web.config
<identity impersonate="true"/>

When I try to access a file on a network share using:

FileStream fileStream = new FileStream( path, FileMode.Open,
FileAccess.Read );

I can access the file with no problem when I run the application in
the Visual
Studio IDE on my PC or when I access the web application directly from
Internet Explorer on my PC.

When I log onto another PC, access the site and try to access the
file, a network login dialog pops up (this does not happen when I run
on my PC). Completing the dialog box has no effect (it keeps popping
up) and when I click Cancel on the dialog box I get a
Systems.UnauthorizedAccessException. The settings for IE are the same
on both machines

I have verified that IPrincipal in System.Web.HttpContext.Current.User
is the same in both cases.

Any thoughts would be greatly appreciated.



Relevant Pages

  • Access denied to network share using Windows Authentication
    ... >Integrated Windows authentication ON ... >FileStream fileStream = new FileStream(path, ... a network login dialog pops up (this does not ... The settings for IE ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • 403.1 and Integrated Windows Authentication
    ... First of all let me thank Jerry III for correctly identifying why IIS 6.0 ... was rejecting my attempts to use Integrated Windows Authentication. ... I created a registry file which modifies the ... their settings for them. ...
    (microsoft.public.inetserver.iis.security)
  • Re: error 0x85010004 on wm5 with exchange sp1
    ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ... <I tried the settings you sent me, but then i have still the problem. ... o The Integrated Windows authentication check box is not selected. ...
    (microsoft.public.windows.server.sbs)
  • Re: Exchange ActiveSync works...
    ... After CEICW wizard, if the issue persists, to make sure that the OMA related virtual directory settings are correct, follow these steps: ... The Integrated Windows authentication check box is not selected. ...
    (microsoft.public.windows.server.sbs)
  • Re: Access denied
    ... No, Anonymous access is disabled, Integrated Windows authentication is ... It's unlikely that restarting the machine would have changed the IIS ... Pls check ur iis settings. ...
    (microsoft.public.sharepoint.portalserver)