WCF没有端点源于.... [英] WCF NO end point fount at....

查看:120
本文介绍了WCF没有端点源于....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在运行Windows XP和Vista的台式计算机中有WCF服务,并且我有一个名为客户端"的移动应用程序项目.当我生成代理时,我在服务运行期间在通用提示符下执行了此步骤:

NetCFSvcUtil http://localhost:8731/Design_Time_Addresses/Server/Service1和此生成的2个文件Greeting_Service.cs和CFClientBase.cs
我把两者都放在Client中;

这是我在Client中的代码:

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;



当我尝试运行服务和客户端时,此部分的CFClientBase.cs中会出现上述错误



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);



我尝试从此Client \ Client \ bin \ Debug \ Client.exe运行客户端",并且运行良好

..............
当我尝试将生成代理的命令更改为...

NetCFSvcUtil http://192.168.1.76:8731/Design_Time_Addresses/Server/Service1这是相同的错误.



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.

推荐答案

ai_elhakim写道:
ai_elhakim wrote:

当我尝试使用您的解决方案并将生成代理的命令更改为...

when i try ur solution and change my command for genrate proxy to ...


您在说谁的解决方案?


Who''s solution are you talking about?


错误消息在哪里?!
请提供有关服务器端的更多信息
Where is the error message?!
Please give more info about the server side


这篇关于WCF没有端点源于....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆