I have a WPF with references to a configured WCF that works well. When debugging with Visual Studio, the "WCF Service Host" tells me that this service is started and does not present problems. If I consult him, he answers me well.
The problem is that when I install the WPF on the same PC, the WCF does not raise.
I tried:
- Copy the lines of the App.config from the WCF to the WPF to see if it is picked up, but unchanged.
- Create the ServiceHost by code and add all the ServiceEndpoints but I am not able to add the behaviors and bindings of the ServiceModel.
Ideally, you do not have to duplicate the WCF Config code to the WPF schedule.
Thanks, regards!
EDIT: I was able to make changes to the programming and create the ServiceHost, add the ServiceEndpoints, the metadata service, behaviors and endpoints, and the serviceDebug. This already works by creating it by code, but I have to check that it is not debugging since the visual studio starts it automatically.