Access is denied error 5

From: Walt (Walt_at_discussions.microsoft.com)
Date: 01/24/05


Date: Mon, 24 Jan 2005 13:21:03 -0800

Currently there are some machines that have problems running an application
that is a Windows Service. When Service goes to create a process it gets an
error 5 on some machines “Access is denied”.

The machines (both good and bad) report that they are at Windows 5.0.2195
Service Pack 4 Build 2195.

The Service currently has access to the desired executable. The path
variable also had the executable in its path.

The Service process can indeed “open” the executable for read (it also has
execute access).

The Service usually attempts to “CreateProcessAsUser” however
short-circuiting it to merely do a “CreateProcess” fails in a similar manner
(Access Denied).

The Service appears to have access to the Winstat0\Default desktop since it
is installed with “SERVICE_INTERACTIVE_PROCESS”.

Using SysInternals ProcessViewer I have checked the Security attributes for
the Windows Service on a "good" machine and “bad” machine. I can see no
appreciable differences. However a few (3 fields) do not provide a value on
the bad machine however they are shown as “Disabled” on my good machine. The
three items are “SeLoadDriverPriv, SeSystemtimePrivilege, SeUndockPrivilege).
 None of these privileges appear to have any bearing on creating a process….
However… the difference is noted.

It appears that the "bad" machines can't create a process for some reason.

Any ideas???

Thanks



Relevant Pages

  • Strange CPU consumption
    ... I have made a Windows Service in VB.NET years ago and it is running ... great on more than 20 machines today. ... what the currently running .NET process is doing (which commands it is ... currently executing)? ...
    (microsoft.public.dotnet.general)
  • copying files in windows service
    ... but i cant copy a folder with files in windows service using ... vb.net(remote machines) where that folder is shared in local machine. ... if anyone knows plz help us.. ...
    (microsoft.public.dotnet.framework)
  • Re: Trouble deploying an ASP.NET project that uses a SERVICE
    ... Are you sure the said Windows Service was installed and running (if set to ... on the target web server computer? ... deploy it on other machines with almost same configuration. ... The Error message that I get in all situatuions is: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Validate network path in windows service
    ... I don't think it is rights issue, because both machines are accessible ... without any userid/password. ... Windows Service is not able to access. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Problems with Win32_PnpDevice???
    ... a few of them, it's bugging out when trying to execute the following WQL: ... I sent the customer a debug version of the app that logs it's activity to a text file, so that I could narrow down exactly where the access violation is coming from and I know the very last line of code that gets executed before the AV occurs - it's the one that issues the above WQL statement to WMI on the remote machine. ... we have a command line app that gives the same error when run locally on the problem machines - so I don't think that's the problem. ...
    (microsoft.public.win32.programmer.wmi)