I develop a dll that consume one Web Service (wcf), but when I consume this dll in client program I must define a app.config file with the endpoint or the client raise a exception: Could not find default endpoint element that references contract. I don´t want that client program must configure a app.config with the endpoint. It is possible this?
Thanks for reply and excuse my bad english.
Edit: I don´t ask about how to write endpoint in code. I want know if is possible that how the dll know the endpoint, then client code not needs specific endopint (in code or app.config).