Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all


Currently i am working on with wcf client-sever application. i am just added service reference using vs add service reference method.and i have automatically generated app.config file and reference.cs file also.

when i trying to create a client instance without using app.config file using following code it works fine.

BasicHttpBinding basicHttpBinding = new BasicHttpBinding();
EndpointAddress endPoint = new EndpointAddress(endpoint address);
proxy=new proxy.client(basicHttpBinding,endpoint);


But whenever i tried to initiate client instance using app.config settings it doesn't initiated at all.the code snippet is below:-

proxy=new proxy.client(endpointconfigurationname);


I just found that reference.cs file has constructor that takes endpointconfiguration name as parameter.then why didn't this method get act?
Posted
Updated 13-Jun-10 19:26pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900