我使用 WCF DataService 创建了一个 winforms 应用程序。
应用程序在 Visual Studio IDE 中运行,但不是从 debug.exe 运行
在我的 app.config 我有这个端点:
<client>
<endpoint address="http://localhost:8733/Design_Time_Addresses/DataService/Service1/"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IService1"
contract="ServiceReference1.IService1" name="BasicHttpBinding_IService1" />
</client>
当我从 exe 运行应用程序时,我收到以下消息
“没有端点监听
http://localhost:8733/Design_Time_Addresses/DataService/Service1
那可以接受这个消息。”
如何在机器上部署服务以便 exe 可以找到它?