我的 WCF(具有客户端和服务器证书)有问题
例外:
System.ServiceModel.ServiceActivationException:无法激活请求的服务“ http://localhost/CustomerServiceSite/Customer.svc ”。有关详细信息,请参阅服务器的诊断跟踪日志。
错误堆栈跟踪:
DoNegotiation(时间跨度超时) System.ServiceModel.Security.SspiNegotiationTokenProvider.OnOpen(时间跨度超时) System.ServiceModel.Security.TlsnegoTokenProvider.OnOpen(时间跨度超时) System.ServiceModel.Security.WrapperSecurityCommunicationObject.OnOpen(时间跨度超时) System.ServiceModel.Channels。 CommunicationObject.Open(TimeSpan timeout) System.ServiceModel.Security.CommunicationObjectSecurityTokenProvider.Open(TimeSpan timeout) System.ServiceModel.Security.SecurityUtils.OpenTokenProviderIfRequired(SecurityTokenProvider tokenProvider, TimeSpan timeout) System.ServiceModel.Security.SymmetricSecurityProtocol.OnOpen(TimeSpan timeout) System .ServiceModel.Security.WrapperSecurityCommunicationObject.OnOpen(时间跨度超时) System.ServiceModel.Channels.CommunicationObject。Open(TimeSpan timeout) OnOpen(TimeSpan timeout) System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.DoOperation(SecuritySessionOperation operation, EndpointAddress target, Uri via, SecurityToken currentToken, TimeSpan timeout) System. ServiceModel.Security.SecuritySessionSecurityTokenProvider.GetTokenCore(TimeSpan timeout) System.IdentityModel.Selectors.SecurityTokenProvider.GetToken(TimeSpan timeout) ClientSecuritySessionChannel.OnOpen(TimeSpan timeout) System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) System.ServiceModel.Channels。 ServiceChannel.OnOpen(时间跨度超时) System.ServiceModel.Channels.CommunicationObject.Open(时间跨度超时) System.Runtime.Remoting.Proxies.RealProxy。HandleReturnMessage(IMessage reqMsg, IMessage retMsg) System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 类型) System.ServiceModel.ICommunicationObject.Open(TimeSpan timeout) System.ServiceModel.ICommunicationObject.Open(TimeSpan timeout) Open( )
诊断设置(在 system.serviceModel 内)
<diagnostics>
<messageLogging logEntireMessage="true" logMalformedMessages="true"
logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true" />
</diagnostics>
我在哪里可以看到诊断错误?有人知道可能是什么问题吗?