[Mono-dev] Exception at System.ServiceModel.Channels.Http.HttpReplyChannel.TryReceiveRequest

Rob Wilkens robwilkens at gmail.com
Wed Jun 13 23:48:02 UTC 2012


I don't mean to get involved, but there was a line number and a file so 
i looked...

I'm not sure if this helps or not, but i looked at the line that failed, 
presuming it hasn't changed since my copy was downloaded:

It's:
    if (msg.Headers.To == null)

And if that's the case, what's probably happening is whatever path it 
followed to assign msg, it might not have assigned a value for Headers 
(which i believe i saw was a readonly property for an internal field 
called 'headers')...  Or it was somehow reset.

Judging from earlier code which check for if msg==null return false, i'd 
suggest maybe throw in a check before that line that if 
msg.Headers==null return false.  OF course, the question might be why 
was msg.Headers null, and i don't have the patience right now to trace 
through every possible path to see if it's possible.  It would be a lot 
easier to trace down if i could reproduce it, but i don't know much 
about setting up mono for web services.

-Rob

On 06/13/2012 06:39 PM, shahbour wrote:
> Hello
>
> 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
>
> [0x4435d940:] EXCEPTION handling: System.NullReferenceException: Object
> reference not set to an instance of an object
> [0x4435d940:] EXCEPTION handling: System.NullReferenceException: Object
> reference not set to an instance of an object
>
> Unhandled Exception: System.NullReferenceException: Object reference not set
> to an instance of an object
>    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
>    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
>
>
>
> --
> View this message in context: http://mono.1490590.n4.nabble.com/Exception-at-System-ServiceModel-Channels-Http-HttpReplyChannel-TryReceiveRequest-tp4649878p4649930.html
> Sent from the Mono - Dev mailing list archive at Nabble.com.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list



More information about the Mono-devel-list mailing list