Hi There,
I have one wcf service and on asp.net appliation . I am consuming wcf service into my asp.net web site. It works fine locally and on dev server,but when it goes on QA server. We are using proxy class to call the service instead of adding service reference.
One more Thing is it neccessary to add behavior configuration into service we.config file if we are using proxy class.
Below is my SVC we.config file
<system.serviceModel>
<services>
<service behaviorConfiguration="" name="FileProcessor">
<endpoint address=""
binding="basicHttpBinding"
bindingConfiguration="Basic_Unsecured"
contract="IFileProcessor" />
</service>
</services>
<bindings>
<basicHttpBinding>
<binding name="Basic_Unsecured" />
</basicHttpBinding>
</bindings>
</system.serviceModel>
Sometimes is works fine but sometime we get below error.
"The server was unable to process the request due to an internal error. For more information about the error; either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client; or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs"
And
"Server stack trace: at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply; MessageFault fault; String action; MessageVersion version; FaultConverter faultConverter) at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation; ProxyRpc& rpc) at System.ServiceModel.Channels.ServiceChannel.Call(String action; Boolean oneway; ProxyOperationRuntime operation; Object[] ins; Object[] outs; TimeSpan timeout) 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)"
Cloud you please tell me why I am getting this error intermitantly.
Please help me out
My web.config of Website
<system.servicemodel>
<bindings>
<basichttpbinding>
<binding name="BasicHttpBinding" closetimeout="00:10:00" opentimeout="00:10:00" receivetimeout="00:10:00" sendtimeout="00:10:00" allowcookies="false" bypassproxyonlocal="false" hostnamecomparisonmode="StrongWildcard" maxbufferpoolsize="524288" maxreceivedmessagesize="65536" textencoding="utf-8" usedefaultwebproxy="true" messageencoding="Text">
<security mode="None" />
</binding>
<binding name="BasicHttpBinding_IFileProcessor" />
</basichttpbinding>
</bindings>
<client>
<endpoint address="" binding="basicHttpBinding" bindingconfiguration="BasicHttpBinding" contract="DMSExport.IFileProcessor" name="BasicHttpBinding_IFileProcessor" />
</client>
</system.servicemodel>