Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - WCF Error

Reply
 
Old 06-21-2008   #1 (permalink)
Tom


 
 

WCF Error

Hello,

I have a simple WCF client/service solution and I'm trying to call an
operation in the service from the client. However, I get the following
error back:

System.ServiceModel.CommunicationException: The socket connection was
aborted. This coule be caused by an error processing your message or a
receive timeout being exceeded by the remote host, or an underlying network
resource issue. ... An existing connection was forcibly closed by the
remote host at ...

I'm using NetTcpBinding in both the client and the service and I'm
configuring it via code:

NetTcpBinding b = new NetTcpBinding(SecurityMode.None);
b.Security.Mode = SecurityMode.None;
b.Security.Transport.ClientCredentialType = TcpClienCredentialType.None;
b.Security.Message.ClientCredentialType = MessageCredentialType.None;

As you can see, I'm using SecurityMode.None. I even have those extra
redundant security lines that probably don't do anything since I passed in
SecurityMode.None when I created the NetTcpBinding object, but hey, I wanted
to be sure and I have no idea why I'm getting back this error. I've made
sure the Windows firewall is turned off, and I even copied my service over
to another machine and made sure the Windows firewall was turned off there
as well. I still get the same error.

The client comes back after about 5 seconds from trying to send the data
with this error, so it's not a timeout either.

Any other ideas?
Thanks.


My System SpecsSystem Spec
Old 06-21-2008   #2 (permalink)
Mr. Arnold


 
 

Re: WCF Error


"Tom" <johnthompson1@xxxxxx> wrote in message
news:93C995D3-B9A3-4677-B3F6-1DEA6AF580C0@xxxxxx
Quote:

> Hello,
>
> I have a simple WCF client/service solution and I'm trying to call an
> operation in the service from the client. However, I get the following
> error back:
>
> System.ServiceModel.CommunicationException: The socket connection was
> aborted. This coule be caused by an error processing your message or a
> receive timeout being exceeded by the remote host, or an underlying
> network resource issue. ... An existing connection was forcibly closed
> by the remote host at ...
>
It looks to me that a firewall could be blocking the connection or maybe
some other application on the machine has the port in use.

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Help with windows vista mail, Socket Error: 10053, Error Number: 0x800CCC0F Vista mail
no,socket Error: 11003. Error Number: 0x800CC0D cant i send email name is correctly Vista mail
Canot post to newsgroups Socket Error: 10053, Error Number: 0x800CCC0F Vista mail
Canot post to newsgroups Socket Error: 10053, Error Number: 0x800CCC0F Vista General
windows live mail 2008 (Build 12.0.1606) error report error Windows Live


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46