Re: Network permissions for w3wp.exe?
From: John Oakes (john_at_nospam.networkproductions.net)
Date: 03/12/04
- Next message: George Durzi: "Href Behavior"
- Previous message: Joel Aufgang: "asp.net memory leak detection?"
- In reply to: Marc Thompson: "Network permissions for w3wp.exe?"
- Next in thread: Marc Thompson: "Re: Network permissions for w3wp.exe?"
- Reply: Marc Thompson: "Re: Network permissions for w3wp.exe?"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 12 Mar 2004 15:07:41 -0500
There is a function on the Microsoft support site that allows you to
impersonate a specific user in code. What I usually do is switch to that
user, access the share, then switch back. I know this is a different
approach than you are using, but just something to consider:
http://support.microsoft.com/default.aspx?scid=kb;en-us;306158#4
-John
"Marc Thompson" <(NO SPAM) my email address is marc at sycron dot com> wrote
in message news:e2xv%23vGCEHA.2256@TK2MSFTNGP12.phx.gbl...
> I have an ASP.NET app that is running on a W2k3 DC. The app needs to
access
> a network share. I have given the "Network Service" profile full access
to
> the share. The code successfully reads files but can't write to files
> within the share. My app does not use impersonation and the IIS
Application
> Pool is running under the "Network Service" profile. When I run
> sysinternal's file monitor, it says the w3wp.exe process is getting denied
> access to the share (when trying to write). It seems to me like there is
> some other profile that w3wp.exe is using to access this share. Do you
know
> what it could be? When I look on the machine that is hosting the share, it
> looks like the user "mydomain\DC machine name $" is the one that is trying
> to access the share. Any ideas?
>
> Thanks,
>
> Marc.
>
>
- Next message: George Durzi: "Href Behavior"
- Previous message: Joel Aufgang: "asp.net memory leak detection?"
- In reply to: Marc Thompson: "Network permissions for w3wp.exe?"
- Next in thread: Marc Thompson: "Re: Network permissions for w3wp.exe?"
- Reply: Marc Thompson: "Re: Network permissions for w3wp.exe?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|