Cant profile windows service using local service account

Memory profiling for .NET developers

Cant profile windows service using local service account

Postby chrisdev » Wed Apr 27, 2011 5:45 pm

I have to run my service under the local service account or the service crashes because it cannot write to the event log. when I start profiling it starts the service, but the gui still thinks its attempting to start the service and that's where it hangs, at the "starting application..." screen.

ConfigurableThreadPool thread] WARN RedGate.Profiler.Engine.Startup.Sessions.WindowsServiceSession - Could not get the original environment for the service. It may not be running, or it may be running as LOCAL SERVICE or NETWORK SERVICE.

how do I fix this?
Posts: 1
Joined: Wed Apr 27, 2011 5:41 pm

Postby Brian Donahue » Wed May 04, 2011 10:36 am

ANTS Profiler is trying to get to a bit of the registry where services store their running environment. This may be failing because of permissions or rights. I believe the key name is:

HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\<your service name>\\Environment
Brian Donahue
Posts: 6590
Joined: Mon Aug 23, 2004 9:48 am

Return to ANTS Memory Profiler Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests