Click here to Skip to main content
15,914,222 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have WCF service in my desktop computer running windows xp and vista and i have the mobile applictaion project called "Client"... when i genrated the proxy i made this step in commond prompt during the service running :

NetCFSvcUtil http://localhost:8731/Design_Time_Addresses/Server/Service1and this genrated 2 files Greeting_Service.cs and CFClientBase.cs
and i puted both in Client;

and this is my code in Client :

System.ServiceModel.Channels.Binding binding = GreetingServiceClient.CreateDefaultBinding();

string address = GreetingServiceClient.EndpointAddress.Uri.ToString();
GreetingServiceClient m_proxy = new GreetingServiceClient(binding, new EndpointAddress(address));

string result = m_proxy.Greet(textBox1.Text).ToString();
textBox2.Text = result;


when i try to run the service and the client the error above is appear in CFClientBase.cs at this part

return requestChannel.Request(msg);


and i tried to run the "Client" from this Client\Client\bin\Debug\Client.exe and it run fine

..............
when i try change my command for genrate proxy to ...

NetCFSvcUtil http://192.168.1.76:8731/Design_Time_Addresses/Server/Service1it is the same error.
Posted
Updated 13-Jun-10 0:52am
v4

Where is the error message?!
Please give more info about the server side
 
Share this answer
 
ai_elhakim wrote:
when i try ur solution and change my command for genrate proxy to ...

Who's solution are you talking about?
 
Share this answer
 
Comments
Ashraf ELHakim 13-Jun-10 2:04am    
i mean the WCF application
Ashraf ELHakim 13-Jun-10 2:04am    
thx for ur replay :)

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