Error Description:
1. WCF: Callers are not authenticated by the server
2. The message cannot be processed. This is most likely because the operation "Http://tempuri.org/ISCCLSvc/GetCarriersByWareHouse" is incorrect, or because the message contains an invalid or expired security context token, or because a mismatch occurs between bindings. If the service aborts the channel because it is not active, the security context token is not valid. To prevent the service from permanently aborting idle sessions, increase the receive timeout on the service endpoint bindings.
3. Or concurrent test, high concurrency problem 2, the actual case: the company Test Department results are concurrent to 50 will have a problem 2 error, and the average response time will be very slow
Resolved results:
Interface test Concurrency 100 no problem, and average response time reduced by 5 times times!
Workaround:
Major changes to the red text area
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name= "Nonesecurity"
Maxbufferpoolsize= "12000000" maxreceivedmessagesize= "12000000" usedefaultwebproxy= "false" >
<readerquotas maxstringcontentlength= "12000000" maxarraylength= "12000000"/>
<security mode= "None"/>
</binding>
</wsHttpBinding>
</bindings>
<services>
<service name= "Wcfservice2.service1" behaviorconfiguration= "Wcfservice2.service1behavior" >
<!--Service Endpoints-
<endpoint address= "" binding= "Wshttpbinding"bindingconfiguration= "Nonesecurity"contract= "Wcfservice2.iservice1" >
<!--
When you deploy, you should remove or replace the following identity elements to reflect
The identity under which the deployment service runs. After deletion, WCF will
The corresponding identification is deduced automatically.
-
<identity>
<dns value= "localhost"/>
</identity>
</endpoint>
<endpoint address= "Mex" binding= "mexHttpBinding" contract= "IMetadataExchange"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name= "Wcfservice2.service1behavior" >
<!--to avoid leaking metadata information, set the following value to False before deployment and delete the above metadata endpoint--
<servicemetadata httpgetenabled= "true"/>
<!--to receive the fault exception details for debugging, set the following value to True. Set to false before deployment to avoid leaking exception information--
<servicedebug includeexceptiondetailinfaults= "false"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
The client changed the security configuration to <security mode= "None"/>
Detailed error message:
- <p></p><p>system.servicemodel.security.messagesecurityexception was unhandled
- Message=an unsecured or incorrectly secured fault is received from the other party. See the inner faultexception for the fault code and detail.
- Source=mscorlib
- StackTrace:
- Server Stack Trace:
- At System.ServiceModel.Security.SecuritySessionClientSettings ' 1.securityrequestsessionchannel.processreply ( Message reply, TimeSpan timeout, securityprotocolcorrelationstate correlationstate)
- 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.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 ApiStressTest.SCCL.ISCCLSvc.GetCarriersByWareHouse (Transmodel tm)
- At ApiStressTest.SCCL.SCCLSvcClient.GetCarriersByWareHouse (Transmodel tm) in D:\SCCL\ApiTest.new\ApiStressTest\ Service References\sccl\reference.cs:line 198
- At ApiStressTest.ServiceWrapper.ServiceAPIWrapperMethod (Object stateInfo) in D:\SCCL\ApiTest.new\ApiStressTest\ SCCLProgram.cs:line 416
- At System.Threading.ThreadHelper.ThreadStart_Context (Object State)
- At System.Threading.ExecutionContext.Run (ExecutionContext ExecutionContext, ContextCallback callback, Object State, Boolean ignoresyncctx)
- At System.Threading.ExecutionContext.Run (ExecutionContext ExecutionContext, ContextCallback callback, Object State)
- At System.Threading.ThreadHelper.ThreadStart (Object obj)
- InnerException:System.ServiceModel.FaultException
- Message= cannot process the message. This is most likely because the operation "Http://tempuri.org/ISCSvc/GetHouse" is incorrect, or because the message contains an invalid or expired security context token, or because a mismatch occurs between bindings. If the service aborts the channel because it is not active, the security context token is not valid. To prevent the service from permanently aborting idle sessions, increase the receive timeout on the service endpoint bindings.
- InnerException:
WCF: The caller is not authenticated by the server