pootow
01-11-2010, 03:16 AM
I've just upgrade from 1.2.0 to the new 1.3.0 release.
I encountered this issue immediately.
I'm exporting a PONO as a wcf service using config:
<objects xmlns="http://www.springframework.net">
<object id="myService" type="TestingWebProject.MyService, TestingWebProject" />
<object id="MyServiceProxy" type="Spring.ServiceModel.ServiceExporter, Spring.Services">
<property name="TargetName" value="myService"/>
</object>
</objects>
and wcf config:
<services>
<service name="MyServiceProxy" behaviorConfiguration="DefaultBehavior">
<endpoint contract="TestingWebProject.IMyService"
behaviorConfiguration="REST"
binding="webHttpBinding"
/>
</service>
</services>
<behaviors>
<endpointBehaviors>
<behavior name="REST">
<webHttp/>
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="DefaultBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
I've got:
Request Error
The server encountered an error processing the request. The exception message is 'Object reference not set to an instance of an object.'. See server logs for more details. The exception stack trace is:
at MyServiceProxy..ctor()
at CreateMyServiceProxy()
at System.ServiceModel.Dispatcher.InstanceBehavior.In stanceProvider.GetInstance(InstanceContext instanceContext, Message message)
at System.ServiceModel.Dispatcher.InstanceBehavior.Ge tInstance(InstanceContext instanceContext, Message request)
at System.ServiceModel.InstanceContext.GetServiceInst ance(Message message)
at System.ServiceModel.Dispatcher.ImmutableDispatchRu ntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRu ntime.ProcessMessage4(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRu ntime.ProcessMessage3(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRu ntime.ProcessMessage2(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRu ntime.ProcessMessage1(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process( Boolean isOperationContextSet)
Anyone who has any ideas?
I encountered this issue immediately.
I'm exporting a PONO as a wcf service using config:
<objects xmlns="http://www.springframework.net">
<object id="myService" type="TestingWebProject.MyService, TestingWebProject" />
<object id="MyServiceProxy" type="Spring.ServiceModel.ServiceExporter, Spring.Services">
<property name="TargetName" value="myService"/>
</object>
</objects>
and wcf config:
<services>
<service name="MyServiceProxy" behaviorConfiguration="DefaultBehavior">
<endpoint contract="TestingWebProject.IMyService"
behaviorConfiguration="REST"
binding="webHttpBinding"
/>
</service>
</services>
<behaviors>
<endpointBehaviors>
<behavior name="REST">
<webHttp/>
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="DefaultBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
I've got:
Request Error
The server encountered an error processing the request. The exception message is 'Object reference not set to an instance of an object.'. See server logs for more details. The exception stack trace is:
at MyServiceProxy..ctor()
at CreateMyServiceProxy()
at System.ServiceModel.Dispatcher.InstanceBehavior.In stanceProvider.GetInstance(InstanceContext instanceContext, Message message)
at System.ServiceModel.Dispatcher.InstanceBehavior.Ge tInstance(InstanceContext instanceContext, Message request)
at System.ServiceModel.InstanceContext.GetServiceInst ance(Message message)
at System.ServiceModel.Dispatcher.ImmutableDispatchRu ntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRu ntime.ProcessMessage4(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRu ntime.ProcessMessage3(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRu ntime.ProcessMessage2(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRu ntime.ProcessMessage1(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process( Boolean isOperationContextSet)
Anyone who has any ideas?