Why does the else branch not get executed?
<p>This actually is a working application. Albeit without much in the way of error trapping.</p>

<p>I am just trying to log the flow and am not reaching either the If branch or the else branch.
What can I do to make that happen? Neither side of the branch is logging into my txt file.</p>

<pre><code>while (reader.Read())
{
    if (reader.HasRows)
    {
        LogMessage("Further Inside Try2 ");
        byte[] paymentData = (byte[])reader["payment"];
        strPaymentData = ASCIIEncoding.Unicode.GetString(paymentData);
        LogMessage(strPaymentData + " strPaymentData");
    }
    else
    {
        LogMessage("Payment Retrievlal Failed ");
    }
}
</code></pre>
