I have a WCF client generated with Add Service Reference, problem is that the classes of this client will get embeded in a .msi (WIX project), together with its config file. From the msi, proxy doesn’t recognize the config file. I want take config file outside of msi and tell the proxy to read what it needs from there.
Is there any way to achieve this? Tell proxy to get it’s data from another config other than default one?
Some ideas or some example would be great.
Thanks,
Adriana
This is how i did it:
From the link that Vasu gave me, from the sample, i added CustomClientChannel in my project.
I found 2 bugs tho :
– if the proxy config doesn’t have Behaviour
– If in the config file are multiple endpoints each one with its binding, it takes always the first binding no matter of the endpoint.
Fixed it like this: