dll - Do windows services log why they wont start? -


i have windows service not start on brand new windows server 2012 installation.

when attempt start service, error.

the foobar service on local computer started , stopped. services stop automatically if not in use other services or programs.

enter image description here

i come linux background, , don't use windows much. in troubleshooting attempts, have been able gather following logs.

the requested performance counter not custom counter, has initialized readonly.\u000d\u000a   @ system.diagnostics.performancecounter.initializeimpl()\u000d\u000a   @ system.diagnostics.performancecounter..ctor(string categoryname, string countername, string instancename, boolean readonly)\u000d\u000a   @ system.diagnostics.performancecounter..ctor(string categoryname, string countername, boolean readonly)\u000d\u000a   @ foobar.sage.onstart(string[] 

things have tried front page of google.

https://stackoverflow.com/a/2081976/1626687

ps c:\users\sowen> lodctr c:\windows\microsoft.net\framework\v4.0.30319\corperfmonext.dll ps c:\users\sowen> lodctr c:\windows\microsoft.net\framework64\v4.0.30319\corperfmonext.dll 

https://stackoverflow.com/a/14513897/1626687

ps c:\users\sowen> unlodctr .netframework removing counter names , explain text .netframework updating text language 009ps  ps c:\users\sowen> lodctr 'c:\windows\inf\.netframework\corperfmonsymbols.ini' 

https://social.technet.microsoft.com/forums/windowsserver/en-us/46a21b31-f5fc-4a44-bd4c-c9884a923943/performance-monitor-in-windows-server-2012

modify hklm/\software\microsoft\windows nt\currentversion\perflib
disable performance counters = 0

loadctl /r 

none of these attempts have resolved issue. there place windows shows additional logging why service wont start?

there doesn't appear more can logging besides looking @ event viewer.

i got running using installutil instead of sc.exe

sc.exe create foobar obj= "example.com\\someuser" password= "correct-horse-battery-staple" binpath= c:\foobar.exe start= auto depends= "msmq"  sc.exe delete foobar  c:\windows\microsoft.net\framework64\v4.0.30319\installutil.exe /user="example.com\someuser" /password="correct-horse-battery-staple" c:\foobar.exe 

Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -