Thursday, 12 September 2013

WCF Service returns null values

WCF Service returns null values

I have few WCF servics that work fine on our test server (Windows Server
2008 R2). When i move these servics to prod server, services returns null.
I am not sure what is causing this. I am guessing these is something
missing on the production server but not sure what is it. Below is teh
exception log. Appreciate any feedback. Thanks
<E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
<System
xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
<EventID>131075</EventID>
<Type>3</Type>
<SubType Name="Error">0</SubType>
<Level>2</Level>
<TimeCreated SystemTime="2013-09-12T16:19:39.2467613Z" />
<Source Name="System.ServiceModel" />
<Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" />
<Execution ProcessName="w3wp" ProcessID="4332" ThreadID="8" />
<Channel />
<Computer>CGWAPP268PD</Computer>
</System>
<ApplicationData>
<TraceData>
<DataItem>
<TraceRecord
xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord"
Severity="Error">
<TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.ThrowingException.aspx</TraceIdentifier>
<Description>Throwing an exception.</Description>
<AppDomain>/LM/W3SVC/1/ROOT/HEIGISDataSvc-1-130234759301892473</AppDomain>
<Exception>
<ExceptionType>System.ServiceModel.ProtocolException,
System.ServiceModel, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089</ExceptionType>
<Message>Content Type application/soap+xml; charset=utf-8 was
sent to a service expecting text/xml; charset=utf-8. The
client and service bindings may be mismatched.</Message>
<StackTrace> at
System.ServiceModel.Channels.HttpInput.ThrowHttpProtocolException(String
message, HttpStatusCode statusCode, String statusDescription)
at
System.ServiceModel.Channels.HttpInput.ParseIncomingMessage(Exception&amp;amp;
requestException)
at
System.ServiceModel.Channels.HttpChannelListener.HttpContextReceived(HttpRequestContext
context, Action callback)
at
System.ServiceModel.Activation.HostedHttpTransportManager.HttpContextReceived(HostedHttpRequestAsyncResult
result)
at
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
at
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
at
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.OnBeginRequest(Object
state)
at
System.Runtime.IOThreadScheduler.ScheduledOverlapped.IOCallback(UInt32
errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
at System.Runtime.Fx.IOCompletionThunk.UnhandledExceptionFrame(UInt32
error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
at
System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32
errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

No comments:

Post a Comment