尝试使用wsHttpBinding访问WCF服务时,我在WCF跟踪日志中收到此异常。我还没有实现自定义安全令牌。是否有关于此错误消息的任何信息。请指教。 从SoapUI调用服务时出现此错误。
必须签署具有“基本”附件模式的“System.IdentityModel.Tokens.UserNameSecurityToken”安全令牌。在System.ServiceModel.Security.ReceiveSecurityHeaderElementManager.EnsureAllRequiredSecurityHeaderTargetsWereProtected()
在System.ServiceModel.Security.ReceiveSecurityHeader.Process(TimeSpan timeout,ChannelBinding channelBinding,ExtendedProtectionPolicy extendedProtectionPolicy)
在System.ServiceModel.Security.MessageSecurityProtocol.ProcessSecurityHeader(ReceiveSecurityHeader securityHeader,Message& amp; message,SecurityToken requiredSigningToken,TimeSpan timeout,SecurityProtocolCorrelationState [] correlationStates)
在System.ServiceModel.Security.SymmetricSecurityProtocol.VerifyIncomingMessageCore(Message& amp; message,String actor,TimeSpan timeout,SecurityProtocolCorrelationState [] correlationStates)
在System.ServiceModel.Security.MessageSecurityProtocol.VerifyIncomingMessage(消息& amp;消息,TimeSpan超时,SecurityProtocolCorrelationState [] correlationStates)
在System.ServiceModel.Channels.SecurityChannelListener 1.ServerSecurityChannel
1.VerifyIncomingMessage(消息& amp;消息,TimeSpan超时,SecurityProtocolCorrelationState [] correlationState)
at System.ServiceModel.Channels.SecurityChannelListener 1.SecurityReplyChannel.ProcessReceivedRequest(RequestContext requestContext, TimeSpan timeout)
at System.ServiceModel.Channels.SecurityChannelListener
1.ReceiveItemAndVerifySecurityAsyncResult 2.OnInnerReceiveDone()
at System.ServiceModel.Channels.SecurityChannelListener
1.ReceiveItemAndVerifySecurityAsyncResult 2.InnerTryReceiveCompletedCallback(IAsyncResult result)
at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
at System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
at System.Runtime.InputQueue
1.AsyncQueueReader.Set(Item item)
在System.Runtime.InputQueue 1.EnqueueAndDispatch(Item item, Boolean canDispatchOnThisThread)
at System.Runtime.InputQueue
1.EnqueueAndDispatch(T item,Action dequeuedCallback,Boolean canDispatchOnThisThread)
在System.ServiceModel.Channels.SingletonChannelAcceptor`3.Enqueue(QueueItemType项,Action dequeuedCallback,Boolean canDispatchOnThisThread)
在System.ServiceModel.Channels.HttpChannelListener.HttpContextReceived(HttpRequestContext context,Action callback)
在System.ServiceModel.Activation.HostedHttpTransportManager.HttpContextReceived(HostedHttpRequestAsyncResult结果)
在System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
在System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.OnBeginRequest(Object state)
在System.ServiceModel.AspNetPartialTrustHelpers.PartialTrustInvoke(ContextCallback回调,对象状态)
在System.ServiceModel.Activation.HostedHttpRequestAsyncResult.OnBeginRequestWithFlow(