[Mono-dev] System.ServiceModel.ServiceHost exception

Josh Abbott josh.k.abbott at gmail.com
Mon Mar 19 16:03:57 UTC 2012


Hi

I'm using ServiceHost with WebHttpBinding and BasicHttpBinding as
endpoints and after running my service during some time I get the
following exception that breaks execution:

Unhandled Exception: System.ArgumentOutOfRangeException: Argument is
out of range.
Parameter name: timeout
  at System.Threading.WaitHandle.WaitOne (TimeSpan timeout, Boolean
exitContext) [0x00000] in <filename unknown>:0
  at System.Threading.WaitHandle.WaitOne (TimeSpan timeout) [0x00000]
in <filename unknown>:0
  at System.ServiceModel.Channels.Http.HttpListenerManager.TryDequeueRequest
(System.ServiceModel.Dispatcher.ChannelDispatcher channel, TimeSpan
timeout, System.ServiceModel.Channels.Http.HttpContextInfo& context)
[0x00000] in <filename unknown>:0
  at System.ServiceModel.Channels.Http.HttpListenerManager.TryDequeueRequest
(System.ServiceModel.Dispatcher.ChannelDispatcher channel, TimeSpan
timeout, System.ServiceModel.Channels.Http.HttpContextInfo& context)
[0x00000] in <filename unknown>:0
  at System.ServiceModel.Channels.Http.HttpReplyChannel.TryReceiveRequest
(TimeSpan timeout, System.ServiceModel.Channels.RequestContext&
context) [0x00000] in <filename unknown>:0
  at System.ServiceModel.Channels.ReplyChannelBase.<BeginTryReceiveRequest>m__21
(TimeSpan tout, System.ServiceModel.Channels.RequestContext& ctx)
[0x00000] in <filename unknown>:0

Maybe some check on timeout variable should be done at
System.ServiceModel.Channels.Http.HttpListenerManager.TryDequeueRequest
?

Regards

Josh


More information about the Mono-devel-list mailing list