.NET 2.0 WebException "The underlying connection was closed: A connection that was expected to be kept alive was closed by the server"

I’ve been working with a few customers lately that have been experiencing this WebException that has been confirmed as an issue introduced by connection management design changes incorporated into .NET 2.0.  The exception typically ocurrs during a web service call however any scenario involving a HttpWebRequest with keep-alives could encounter this issue.    Note, this…

1

Reducing Netmon trace file size via capturing only a single port using a capture filter

This is a handy tip to reduce the file size of your Netmon traces.  This is particularlly useful when you need to leave the trace running for an extended period of time.   Thanks go to my collegue Andreja Rusjakovski for this tip… Just before starting the trace go to Capture->Filter->Load button and select a *.cf file. …

1

Using Microsoft Network Monitor (Netmon) to capture a network trace

1) Download and install Netmon from the following URL.  Note, the password for the .zip is “trace”. ftp://ftp.microsoft.com/pss/tools/netmon/netmon2.zip 2) Start Netmon. Administrative Tools->Network Analysis Tools->Network Monitor 3) Select the appropriate network interface. The first time you run Netmon, you’ll be asked to select the network interface to trace.  The following command from the command line…

2