Red Gate forums :: View topic - Cant profile windows service using local service account
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Memory Profiler Previous Versions
ANTS Memory Profiler Previous Versions forum

Cant profile windows service using local service account

Search in ANTS Memory Profiler Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
chrisdev



Joined: 27 Apr 2011
Posts: 1

PostPosted: Wed Apr 27, 2011 6:45 pm    Post subject: Cant profile windows service using local service account Reply with quote

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?
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6588

PostPosted: Wed May 04, 2011 11:36 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group