views:

91

answers:

0

I am a WCF newb so I am having trouble deciphering the error.

The case is this:

  1. I invoke my service through the WCF test client.Just testing at this point
  2. The service invocation bascially requires one parameter which is a scenario name. This is contained in the ScenarioRequest type ( see error below).
  3. The analytics service then uses fluent nhibernate to retrieve the scenario with the given name.

Problems start here: 1. If I set the scenario name to a non-existent scenario the service runs properly. 2. If the scenario name exists ( e.g. fluent nhibernate does not return null, but returns a scenario), then the below error is thrown. I have to assume it has something to do with the way Scenario and/or Scenario's components are serialized.

If I place breakpoints inside of Analytics.GetScenario(ScenarioRequest request) I am able to see that the proper scenario is returned. So the error is definitely somewhere on the wire.

An error occurred while receiving the HTTP response to http://localhost:8731/Design_Time_Addresses/ServiceLibrary/Service1/. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.

Server stack trace: at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason) at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout) at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout) at System.ServiceModel.Channels.ClientReliableChannelBinder1.RequestClientReliableChannelBinder1.OnRequest(TRequestChannel channel, Message message, TimeSpan timeout, MaskingMode maskingMode) at System.ServiceModel.Channels.ClientReliableChannelBinder1.Request(Message message, TimeSpan timeout, MaskingMode maskingMode) at System.ServiceModel.Channels.ClientReliableChannelBinder1.Request(Message message, TimeSpan timeout) at System.ServiceModel.Security.SecuritySessionClientSettings`1.SecurityRequestSessionChannel.Request(Message message, TimeSpan timeout) at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at IAnalyticsService.GetScenario(ScenarioRequest request) at Analytics.GetScenario(ScenarioRequest request)