c# - Find unhandled exception in windows service OnStart -


i have selfhosting wcf service consists of dll , windows service. in dll wcf service , app.config described. wcf service meant host whole thing.

my problem when try start service wont start. "your service has been started , stopped" kind of thing.

i tried search error outcommenting code. did until there structure (initialisation, onstart, onstop) , didn't work?

is happens more often? system.diagnostics.debbuger.launch doesn't work debug. has better ideas of debugging onstart method?

add try...catch in 'onstart' method logging event log , see if receive exceptions.

there chance problems might exist in wcf binding or service contract implementation. so, please check wcf config issues. if can post contents of config, better give more guidance.

for quick troubleshooting, can host wcf in console application , see if working fine rather starting service every time.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -