Windows installer自定义操作调用WCF从远程获取值失败。(未找到异常点)

Windows installer自定义操作调用WCF从远程获取值失败。(未找到异常点),wcf,windows-installer,Wcf,Windows Installer,我正在使用windows installer部署我的应用程序。我还添加了一个自定义操作来从远程服务器访问WCF服务。安装应用程序时,我发现endpoind未找到异常 ServiceReference.testContractsClient client; var wsBinding = new WSHttpBinding(SecurityMode.None, false); //End point i take from user input EndpointAddress endpointAd

我正在使用windows installer部署我的应用程序。我还添加了一个自定义操作来从远程服务器访问WCF服务。安装应用程序时,我发现endpoind未找到异常

ServiceReference.testContractsClient client;
var wsBinding = new WSHttpBinding(SecurityMode.None, false);
//End point i take from user input
EndpointAddress endpointAddress = new EndpointAddress(ctlWebServiceUrl.Text);
wsBinding.MaxReceivedMessageSize = int.MaxValue;
client = new ServiceReference.testContractsClient(wsBinding, endpointAddress);
client.test(); //method call
若我连接到LAN(网络),它工作,相同的安装程序在所有机器上工作。
只有一台电脑上的Windows XP Professional出现问题。

我发现代理存在问题,我们需要将endpoint对象的
usedefaultproxy
标志设置为
false