link

My program consists of a Windows Forms app, a WCF Library and a Windows Service. The Windows Service is hosting the WCF Library. In Debug mode everything seems to be fine. The WCF Library is working (reading from the communication ports and storing data into the database). If i install the complete app (Forms, WCF Lib and Windows Service) using my Setup project the WCF Library is not accessible for the Forms app and is not reading from the communication ports. Apparently the Windows Service is not hosting the WCF Library.

I verified setting and the app.configs. I copied the complete App.config from the WCF Library project to the Windows Service project and it is still not working. It is not working when i start the service with the InstallUtil.exe as well.

I completely have no clue were to continue and how to solve this. Anyone who could provide me with a tip, please.

Thank a million in advance.

My App.config:


<system.serviceModel>
<services>
<service behaviorConfiguration="MyWCFServiceLibrary.MyWCFServiceBehavior"
name="MyWCFServiceLibrary.MyWCFService">
<endpoint address=""
binding="netNamedPipeBinding"
bindingConfiguration=""
contract="MyWCFServiceLibrary.IMyWCFService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex"
binding="mexNamedPipeBinding"
bindingConfiguration=""
contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="net.pipe://localhost/MyWCFService/" />
</baseAddresses>
<timeouts openTimeout="00:00:10" />
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="MyWCFServiceLibrary.MyWCFServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>