netTcpBinding in my service app.config has security mode set to ‘None’and that is working fine. When I change it to the default mode of nettcpbinding i.e.Mode=Transport and clientCredentialType="Windows", I get following exception in GUI project while connecting to the this service
The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '00:00:59.6982306'.
I viewed service trace in trace viewer and that showed the following error message: The message with To 'net.tcp://localhost:9200/MyService/mex/mex' cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher. Check that the sender and receiver's EndpointAddresses agree.
if I create a new service with a nettcpendpoint having default transport security, that works fine.
If anybody has any idea about this, please let me know.
I'm working on a Custom Start Page for VS 2010. For those who don't know, when you run a custom start page in development, VS opens an experimental instance of VS 2010 so you can try it.
I have a service reference to a WCF service in the app. When I run it in other applications I can call the service fine.
In this app, which is opening in an experimental instance, when I do
FalconServiceClient _serviceClient = new FalconServiceClient();
I get an exception:
Could not find default endpoint element that references contract 'FalconServiceRef.IFalconService'in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.
I have copied the app.config to the instance's bin folder. Doesn't help.