I developed a c# console app which run as expected (write multi lines to console ) in my debug environment,
But when I pass it to production environment it start and stop after less than 1 sec without any error massage and without writing any line ,also no relevant massage in the event viewer , because it run shortly I can’t remote attache the debugger to it .
How can I solve this problem? How to investigate\debug if I can’t attached to it? Where do I start?