Re: Network permissions for w3wp.exe?

From: John Oakes (john_at_nospam.networkproductions.net)
Date: 03/12/04


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.
>
>



Relevant Pages

  • Re: Hiding VIO window screensize changes?
    ... But this isn't about diving into Dive, and the original app (over ... Prefix "1": type MyApp.EXE in a fullscreen CMD.EXE session ... use a regular WPS file object representing MyApp.EXE (VIO) ... to be a minimized switch to 40x25, ...
    (comp.os.os2.programmer.misc)
  • Re: [opensuse] KDE4.x.x Activities
    ... the leaving that app open switch back to your other activity via the ... Maybe the KDE team need a bit of a pokingto jiffy them up a little on ... SuSE Linux 10.3-Alpha3. ...
    (SuSE)
  • Re: Forms Creation Question
    ... Set Form2 as active form ... However, you better watch out when you switch between forms, ... MVP - Windows CE.NET, MCSD.NET, .NETcf consultant ... >> I show tons of instances of my app opened, only because a bunch of forms ...
    (microsoft.public.dotnet.framework.compactframework)
  • Update - How to prevent Hard Flicker present in Access database
    ... Switch back to the app, after I judge that the app has finished loading. ... AND it prompted a VISIBLE error. ... "Marshall Barton" wrote: ...
    (microsoft.public.access.modulesdaovba)
  • Re: Managed Asynchronous Pluggable Protocol and Threads
    ... > STA apartment (debugger shows ... HTTP APP calls you back on ... a worker thread that did not initialize COM at all. ... > Continue myself from my Switch method. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)