[Mono-list] Mono 2.10.4 and WebServiceHost

bert.moorthaemer at gmail.com bert.moorthaemer at gmail.com
Mon Aug 15 05:10:43 EDT 2011


Hi all!

I have setup the CalcService example using WebServiceHost and I'm keep
getting these errors on my screen:

Exception A system exception has occurred.   at
System.ServiceModel.Description.WebHttpBehavior+EndpointNotFoundOperationInvoker.Invoke
(System.Object instance, System.Object[] inputs, System.Object[]& outputs)
[0x00000] in <filename unknown>:0
  at System.ServiceModel.Dispatcher.OperationInvokerHandler.DoProcessRequest
(System.ServiceModel.Dispatcher.MessageProcessingContext mrc) [0x00000] in
<filename unknown>:0
  at System.ServiceModel.Dispatcher.OperationInvokerHandler.ProcessRequest
(System.ServiceModel.Dispatcher.MessageProcessingContext mrc) [0x00000] in
<filename unknown>:0
  at
System.ServiceModel.Dispatcher.BaseRequestProcessorHandler.ProcessRequestChain
(System.ServiceModel.Dispatcher.MessageProcessingContext mrc) [0x00000] in
<filename unknown>:0
  at
System.ServiceModel.Dispatcher.BaseRequestProcessorHandler.ProcessRequestChain
(System.ServiceModel.Dispatcher.MessageProcessingContext mrc) [0x00000] in
<filename unknown>:0
  at System.ServiceModel.Dispatcher.HandlersChain.ProcessRequestChain
(System.ServiceModel.Dispatcher.MessageProcessingContext mrc) [0x00000] in
<filename unknown>:0
  at System.ServiceModel.Dispatcher.BaseRequestProcessor.ProcessRequest
(System.ServiceModel.Dispatcher.MessageProcessingContext mrc) [0x00000] in
<filename unknown>:0

... and after closing the WebServiceHost ...

ServiceHostBase failed to close the channel dispatcher:
System.InvalidOperationException: Operation is not valid due to the current
state of the object
  at System.Linq.Enumerable.First[HttpChannelListenerEntry] (IEnumerable`1
source, System.Func`2 predicate, Fallback fallback) [0x00000] in <filename
unknown>:0
  at System.Linq.Enumerable.First[HttpChannelListenerEntry] (IEnumerable`1
source, System.Func`2 predicate) [0x00000] in <filename unknown>:0
  at
System.ServiceModel.Channels.Http.HttpListenerManager.UnregisterListenerCommon
(System.ServiceModel.Dispatcher.ChannelDispatcher channel, TimeSpan timeout)
[0x00000] in <filename unknown>:0
  at
System.ServiceModel.Channels.Http.HttpStandaloneListenerManager.UnregisterListener
(System.ServiceModel.Dispatcher.ChannelDispatcher channel, TimeSpan timeout)
[0x00000] in <filename unknown>:0
  at
System.ServiceModel.Channels.Http.HttpChannelListener`1[System.ServiceModel.Channels.IReplyChannel].OnAbort
() [0x00000] in <filename unknown>:0
  at System.ServiceModel.Channels.CommunicationObject.Abort () [0x00000] in
<filename unknown>:0
  at System.ServiceModel.Dispatcher.ListenerLoopManager.Stop (TimeSpan
timeout) [0x00000] in <filename unknown>:0
  at System.ServiceModel.Dispatcher.ChannelDispatcher.OnClose (TimeSpan
timeout) [0x00000] in <filename unknown>:0
  at System.ServiceModel.Channels.CommunicationObject.Close (TimeSpan
timeout) [0x00000] in <filename unknown>:0
  at System.ServiceModel.ServiceHostBase.OnCloseOrAbort (TimeSpan timeout)
[0x00000] in <filename unknown>:0

I suppose there is some Console.Write going on here and I think there are
probably some bugs in the code...

Please help me out on this because I need WebServiceHost for a REST service
I'm planning ...

TIA

Bert

--
View this message in context: http://mono.1490590.n4.nabble.com/Mono-2-10-4-and-WebServiceHost-tp3744197p3744197.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list