Thursday, January 10, 2013

.NET TcpClient: "An established connection was aborted by the software in your host machine"

My client app was getting the exception suddenly.  After a lot of hair pulling it seems that a minor change in the hostname given to the TcpClient was the culprit.  The client was connecting to a server on the local machine and got the error when using the fully qualified name (eg. machine.domain.local) of the local machine as the hostname for TcpClient.  The problem goes away when I change the hostname parameter to '127.0.0.1'.  It seems like TcpClient sockets has collision issues when connecting to localhost by the network name.

Monday, January 7, 2013

jQuery sortable Interaction

Had a simple ASP.NET MVC 4 app and decided to play with jQuery.  Tabs worked fine but 'sortable' lists and table-rows didn't drag or drop.  Turns out that I was including 2 versions of jquery-ui-xxxx.js scripts in my BundleConfig.RegisterBundles call.  took out the reference to jquery-ui-1.8.20.js and sortable worked.