Asp.Net Web Service accessing file on UNC share

From: BrianS (BrianS_at_discussions.microsoft.com)
Date: 02/10/05


Date: Thu, 10 Feb 2005 14:41:04 -0800

I have a web service which uses threading and impersonation to call a STA
object. I have also followed KB article
http://support.microsoft.com/default.aspx?scid=kb;en-us;325791 to impersonate
correctly with STA component.

I put <identity impersonate="true" /> in web.config

Right before my File Access, I confirmed the correct user in
System.security.principal.windowsidentity.current().name

I set correct NTFS permissions on the file. I still get access denied msg
when trying to get this file. I thought code impersonation avoids having to
use Kerberos delegation? Why can't I access this file? (it works on local
webserver)

Regards,
B



Relevant Pages

  • 3rd Party ActiveX Object not working
    ... But we would desperately like to use a Web Service because: ... this ties to a DHTML client and we can avoid to avoid unnecessary post ... I tried making the calling thread be STA - as per MSDN Support's ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Issue with ASP.NET client, COM Interop, and Identity impersonation
    ... and running the process under a domain account ... When you COM object is a threadingmodel=apartment (STA), ... you need to get a logon token by calling Win32 API ... We need impersonation to work only for this web ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Issue with ASP.NET client, COM Interop, and Identity impersonation
    ... and running the process under a domain account ... When you COM object is a threadingmodel=apartment (STA), ... you need to get a logon token by calling Win32 API ... We need impersonation to work only for this web ...
    (microsoft.public.dotnet.framework)
  • Re: Issue with ASP.NET client, COM Interop, and Identity impersonation
    ... and running the process under a domain account ... When you COM object is a threadingmodel=apartment (STA), ... you need to get a logon token by calling Win32 API ... We need impersonation to work only for this web ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Issue with ASP.NET client, COM Interop, and Identity impersonation
    ... and running the process under a domain account ... When you COM object is a threadingmodel=apartment (STA), ... you need to get a logon token by calling Win32 API ... We need impersonation to work only for this web ...
    (microsoft.public.dotnet.framework.aspnet)