<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    Just as a double check, msg might not be null and msg.Headers could
    be null and that could be causing the problem too. <br>
    <br>
    -Rob<br>
    <br>
    On 06/13/2012 08:52 PM, shahbour wrote:
    <blockquote
cite="mid:CAJ-1PwU54z7786ZJR7Zr5jJCPU4kdS2rx+28r3ZHq=UZxREyqA@mail.gmail.com"
      type="cite">
      <p>Thanks rob</p>
      <p>I have added a condition above this to check if msg == null to
        return false same as the post above it do.</p>
      <p>So now both get and post well return false If msg is null.</p>
      <p>We'll see if exception is thrown again.</p>
      <p>My problem is that I am not able to reproduce it as it happen
        randomly after like 8 or 14 hour running correctly.</p>
      <p>BR<br>
        Shahbour</p>
      <div class="gmail_quote">On Jun 13, 2012 10:39 PM, "shahbour [via
        Mono]" <<a moz-do-not-send="true"
          href="/user/SendEmail.jtp?type=node&node=4649939&i=0"
          target="_top" rel="nofollow" link="external">[hidden email]</a>>
        wrote:<br type="attribution">
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex"> Hello
          <br>
          <br>
          After enabling debug and compiling from source i got the line
          which is causing the error , note that the error happen after
          leaving the system idle for around 8 hours
          <br>
          <br>
          [0x4435d940:] EXCEPTION handling:
          System.NullReferenceException: Object reference not set to an
          instance of an object
          <br>
          [0x4435d940:] EXCEPTION handling:
          System.NullReferenceException: Object reference not set to an
          instance of an object
          <br>
          <br>
          Unhandled Exception: System.NullReferenceException: Object
          reference not set to an instance of an object
          <br>
            at
          System.ServiceModel.Channels.Http.HttpReplyChannel.TryReceiveRequest
          (TimeSpan timeout,
          System.ServiceModel.Channels.RequestContext& context)
          [0x000e5] in
/usr/local/src/mono-2.11.1/mcs/class/System.ServiceModel/System.ServiceModel.Channels.Http/HttpReplyChannel.cs:178<br>
            at
          System.ServiceModel.Channels.ReplyChannelBase.<BeginTryReceiveRequest>m__10
          (TimeSpan tout,
          System.ServiceModel.Channels.RequestContext& ctx)
          [0x0002f] in
/usr/local/src/mono-2.11.1/mcs/class/System.ServiceModel/System.ServiceModel.Channels/ReplyChannelBase.cs:126<br>
          <br>
          <br>
          <br>
          <hr color="#cccccc" noshade="noshade" size="1">
          <div style="color:#444;font:12px
            tahoma,geneva,helvetica,arial,sans-serif">
            <div style="font-weight:bold">If you reply to this email,
              your message will be added to the discussion below:</div>
            <a moz-do-not-send="true"
href="http://mono.1490590.n4.nabble.com/Exception-at-System-ServiceModel-Channels-Http-HttpReplyChannel-TryReceiveRequest-tp4649878p4649930.html"
              target="_blank" rel="nofollow" link="external">http://mono.1490590.n4.nabble.com/Exception-at-System-ServiceModel-Channels-Http-HttpReplyChannel-TryReceiveRequest-tp4649878p4649930.html</a>
          </div>
          <div style="color:#666;font:11px
tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
            To unsubscribe from Exception at
            System.ServiceModel.Channels.Http.HttpReplyChannel.TryReceiveRequest,
            <a moz-do-not-send="true" href="" target="_blank"
              rel="nofollow" link="external">click here</a>.<br>
            <a moz-do-not-send="true"
href="http://mono.1490590.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml"
              rel="nofollow" style="font:9px serif" target="_blank"
              link="external">NAML</a> </div>
        </blockquote>
      </div>
      <br>
      <hr align="left" width="300">
      View this message in context: <a moz-do-not-send="true"
href="http://mono.1490590.n4.nabble.com/Exception-at-System-ServiceModel-Channels-Http-HttpReplyChannel-TryReceiveRequest-tp4649878p4649939.html">Re:
        Exception at
        System.ServiceModel.Channels.Http.HttpReplyChannel.TryReceiveRequest</a><br>
      Sent from the <a moz-do-not-send="true"
        href="http://mono.1490590.n4.nabble.com/Mono-Dev-f1517221.html">Mono
        - Dev mailing list archive</a> at Nabble.com.<br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Mono-devel-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Mono-devel-list@lists.ximian.com">Mono-devel-list@lists.ximian.com</a>
<a class="moz-txt-link-freetext" href="http://lists.ximian.com/mailman/listinfo/mono-devel-list">http://lists.ximian.com/mailman/listinfo/mono-devel-list</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>