Windows installer custome action call WCF to get value from remote failed.(NoEndpoint found exeption

Posted by malik on Stack Overflow See other posts from Stack Overflow or by malik
Published on 2010-03-17T12:09:29Z Indexed on 2010/03/17 12:11 UTC
Read the original article Hit count: 227

Filed under:
|
|

I am using windows installer to deploy my application. And i have add a custom action to access a WCF service from remote server. While installing application i found endpoind not found exception.

    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

If i connect to LAN (network) it works, same installer work on all machine. Windows XP Professional on only one PC have issue. If anybody can help..

© Stack Overflow or respective owner

Related posts about Windows

Related posts about installer