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 > Indigo

Vista - net.tcp failure

 
 
Old 06-11-2007   #1 (permalink)
Jon Davis


 
 

net.tcp failure

We have an ASP.NET web site that has a WCF client connection to a Windows
service that has some indexed data that the web app is querying. The service
has two endpoints: a named pipes endpoint and a TCP endpoint. In the
development environment, both endpoints connected and performed great with
both IIS and the Windows service on the workstation, and both endpoints
connected and performed equally great using the TCP endpoint with the
Windows service running on another development machine on the LAN.

While staging deployment of IIS and the Windows service on the same staging
server, though, I'm getting error message

"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."

The net.pipe endpoint works fine, it's only when I switch to the net.tcp
endpoint that I get this error. I have double-verified that the DLLs match
up between IIS and the Windows service, including by re-compiling and
re-deploying, with nothing missing--the data structures shouldn't mismatch,
though, anyway, if net.pipe works with the same service. The network adapter
has two Ethernet adapters, one Internal and one External; I configured the
TCP URI initially to "localhost", same as in development, and also tried
explicitly setting it to the internal IP address on both sides (IIS and
Windows service), but I still get this error. There are no other known TCP /
Ethernet issues on this server.

Any ideas?

- Jon



My System SpecsSystem Spec
Old 06-11-2007   #2 (permalink)
Jon Davis


 
 

Re: net.tcp failure

Also, should mention, security is disabled (for now).

<security mode="None" />

Jon


"Jon Davis" <jon@REMOVE.ME.PLEASE.jondavis.net> wrote in message
news:uLIru1ErHHA.4180@TK2MSFTNGP04.phx.gbl...
> We have an ASP.NET web site that has a WCF client connection to a Windows
> service that has some indexed data that the web app is querying. The
> service has two endpoints: a named pipes endpoint and a TCP endpoint. In
> the development environment, both endpoints connected and performed great
> with both IIS and the Windows service on the workstation, and both
> endpoints connected and performed equally great using the TCP endpoint
> with the Windows service running on another development machine on the
> LAN.
>
> While staging deployment of IIS and the Windows service on the same
> staging server, though, I'm getting error message
>
> "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."
>
> The net.pipe endpoint works fine, it's only when I switch to the net.tcp
> endpoint that I get this error. I have double-verified that the DLLs match
> up between IIS and the Windows service, including by re-compiling and
> re-deploying, with nothing missing--the data structures shouldn't
> mismatch, though, anyway, if net.pipe works with the same service. The
> network adapter has two Ethernet adapters, one Internal and one External;
> I configured the TCP URI initially to "localhost", same as in development,
> and also tried explicitly setting it to the internal IP address on both
> sides (IIS and Windows service), but I still get this error. There are no
> other known TCP / Ethernet issues on this server.
>
> Any ideas?
>
> - Jon
>
>



My System SpecsSystem Spec
Old 06-11-2007   #3 (permalink)
Jon Davis


 
 

Re: net.tcp failure

.... which brought me to the realization that I forgot to add the custom
BindingConfiguration on the Windows service config file.

<bindings>
<netTcpBinding>
<binding name="tcp_Unsecured">
<security mode="None" />
</binding>
</netTcpBinding>
</bindings>


"Jon Davis" <jon@REMOVE.ME.PLEASE.jondavis.net> wrote in message
news:u4Em1CFrHHA.3380@TK2MSFTNGP03.phx.gbl...
> Also, should mention, security is disabled (for now).
>
> <security mode="None" />
>
> Jon
>
>
> "Jon Davis" <jon@REMOVE.ME.PLEASE.jondavis.net> wrote in message
> news:uLIru1ErHHA.4180@TK2MSFTNGP04.phx.gbl...
>> We have an ASP.NET web site that has a WCF client connection to a Windows
>> service that has some indexed data that the web app is querying. The
>> service has two endpoints: a named pipes endpoint and a TCP endpoint. In
>> the development environment, both endpoints connected and performed great
>> with both IIS and the Windows service on the workstation, and both
>> endpoints connected and performed equally great using the TCP endpoint
>> with the Windows service running on another development machine on the
>> LAN.
>>
>> While staging deployment of IIS and the Windows service on the same
>> staging server, though, I'm getting error message
>>
>> "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."
>>
>> The net.pipe endpoint works fine, it's only when I switch to the net.tcp
>> endpoint that I get this error. I have double-verified that the DLLs
>> match up between IIS and the Windows service, including by re-compiling
>> and re-deploying, with nothing missing--the data structures shouldn't
>> mismatch, though, anyway, if net.pipe works with the same service. The
>> network adapter has two Ethernet adapters, one Internal and one External;
>> I configured the TCP URI initially to "localhost", same as in
>> development, and also tried explicitly setting it to the internal IP
>> address on both sides (IIS and Windows service), but I still get this
>> error. There are no other known TCP / Ethernet issues on this server.
>>
>> Any ideas?
>>
>> - Jon
>>
>>

>
>



My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
vista ultimate backup failure - shadow copy failure Vista General
USB Failure Vista hardware & devices
vista ultimate backup failure - shadow copy failure Vista General
Another WGA failure Vista General
Re: Catastrophic Failure: Catastrophic Failure Complete PC Backup Info Vista General


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