Hello everyone. For a day I'm trying to figure out why my application can't get data from sql database when I host wcf service in command line application. All works perfectly when I host WCF service in Visual Studio Service Host. When I host in command line I'm getting an exception. Intresting is when I call others wcf methods (which are not query database), then it works in command line application host.
Please help !!!

Manas MohapatraRank #182 · 13.2K reputationPosted Aug 20, 2016, 9:48 AM EDT
Tom Muz3 reputationPosted Aug 20, 2016, 10:02 AM EDT
Hi.Please look intoattachement for exception. Wcf, when is hosted on CmdLine app works ok when Ilaunch methodsnot database related. When Ilaunch metod which read something from DBI get an error.