Last post Aug 26, 2013 07:24 AM by Illeris
Aug 26, 2013 03:35 AM|vijaycool|LINK
I am trying to connect database thru WCF, but I am getting the error
"An existing connection was forcibly closed by the remote host wcf".
My webconfig is
<compilation debug="true" targetFramework="4.0" />
<!-- To avoid disclosing metadata information, set the value below to false before deployment -->
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
To browse web app root directory during debugging, set the value below to true.
Set to false before deployment to avoid disclosing web app folder information.
<add name="DBConnection" connectionString="Data Source=mycoonection settings"/>
Aug 26, 2013 05:50 AM|vijaycool|LINK
It seems, to retrieve datatable, there is another method which i don't know.
I tried returning dataset, worked fine.
Aug 26, 2013 07:24 AM|Illeris|LINK
This kind of errors is mostly related to exceptions thrown by a WCF service internals. Put a try-catch around your service implementation code, and throw a faultexception to the client with meaningfull exception info. This will show you what went wrong.