Cообщество разработчиков на платформе Microsoft > Форумы > AppFabric > Unable to get the EchoService to work (System.ServiceModel.Security.MessageSecurityException)
Задайте вопросЗадайте вопрос
 

ОтвеченоUnable to get the EchoService to work (System.ServiceModel.Security.MessageSecurityException)

  • 24 ноября 2008 г. 0:33zeppo Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     
    I keep getting this exception - System.ServiceModel.Security.MessageSecurityException  and the inner exception is 

    An error occurred when verifying security for the message.

    Message: "An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail."

    I just cant figure out what this is due to. I have followed the instructions in the hand on labs to the letter. I have tried both Windows CardSpace Credentials and UsernamePassword and get the same results. Having had no luck, I opened up the solution that was in the samples, compiled it and ran it and get the same exception. I am using a Virutal PC with Windows Server 2008.

    My solution name is zeppo_az

    Complete Stack Trace
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    {"An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail."}[System.ServiceModel.Security.MessageSecurityException]: {"An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail."}
    Data: {System.Collections.ListDictionaryInternal}
    HelpLink: null
    InnerException: {"An error occurred when verifying security for the message."}
    Message: "An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail."
    Source: "System.ServiceModel"
    StackTrace: "\r\nServer stack trace: \r\n at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.ProcessReply(Message reply, SecurityProtocolCorrelationState correlationState, TimeSpan timeout)\r\n at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)\r\n at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)\r\n at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)\r\n at System.ServiceModel.Channels.ServiceChannel.Request(Message message, TimeSpan timeout)\r\n\r\nException rethrown at [0]: \r\n at System.ServiceModel.Security.IssuanceTokenProviderBase`1.DoNegotiation(TimeSpan timeout)\r\n at System.ServiceModel.Security.IssuanceTokenProviderBase`1.GetTokenCore(TimeSpan timeout)\r\n at System.IdentityModel.Selectors.SecurityTokenProvider.GetToken(TimeSpan timeout)\r\n at System.ServiceModel.Security.Tokens.IssuedSecurityTokenProvider.GetTokenCore(TimeSpan timeout)\r\n at System.IdentityModel.Selectors.SecurityTokenProvider.GetToken(TimeSpan timeout)\r\n at Microsoft.ServiceBus.CardSpaceTokenProvider.OnGetToken(String appliesTo, List`1 requiredClaims, TimeSpan timeout)\r\n at Microsoft.ServiceBus.TokenProvider.GetToken(String appliesTo, List`1 requiredClaims, TimeSpan timeout)\r\n at Microsoft.ServiceBus.TokenProvider.GetToken(String appliesTo, String action, TimeSpan timeout)\r\n at Microsoft.ServiceBus.RelayedOnewayTcpListener.Subscribe(IDuplexChannel channel)\r\n at Microsoft.ServiceBus.RelayedOnewayTcpListener.OnOnline(Object sender, EventArgs args)\r\n at Microsoft.ServiceBus.RelayedOnewayTcpClient.SetStatus(RelayedOnewayStatus status, Exception error)\r\n at Microsoft.ServiceBus.RelayedOnewayTcpClient.Connected(IDuplexChannel channel)\r\n at Microsoft.ServiceBus.RelayedOnewayTcpClient.Connect()\r\n at Microsoft.ServiceBus.RelayedOnewayTcpClient.EnsureChannel()\r\n at Microsoft.ServiceBus.RelayedOnewayTcpClient.OnOpen(TimeSpan timeout)\r\n at Microsoft.ServiceBus.Channels.CommunicationObject.Open(TimeSpan timeout)\r\n at Microsoft.ServiceBus.RelayedOnewayTcpListener.OnOpen(TimeSpan timeout)\r\n at Microsoft.ServiceBus.Channels.RefcountedCommunicationObject.Open(TimeSpan timeout)\r\n at Microsoft.ServiceBus.RelayedOnewayChannelListener.OnOpen(TimeSpan timeout)\r\n at Microsoft.ServiceBus.Channels.CommunicationObject.Open(TimeSpan timeout)\r\n at System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)\r\n at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)\r\n at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)\r\n at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)\r\n at System.ServiceModel.Channels.CommunicationObject.Open()\r\n at Microsoft.ServiceBus.RelayedSocketListener.Listen()\r\n at Microsoft.ServiceBus.SocketConnectionListener.Listen()\r\n at Microsoft.ServiceBus.Channels.BufferedConnectionListener.Listen()\r\n at Microsoft.ServiceBus.Channels.ConnectionAcceptor.StartAccepting()\r\n at Microsoft.ServiceBus.Channels.ConnectionDemuxer.StartDemuxing(OnViaDelegate viaDelegate)\r\n at Microsoft.ServiceBus.SocketConnectionTransportManager.OnOpen()\r\n at Microsoft.ServiceBus.Channels.TransportManager.Open(TransportChannelListener channelListener)\r\n at Microsoft.ServiceBus.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)\r\n at Microsoft.ServiceBus.Channels.TransportChannelListener.OnOpen(TimeSpan timeout)\r\n at Microsoft.ServiceBus.Channels.ConnectionOrientedTransportChannelListener.OnOpen(TimeSpan timeout)\r\n at Microsoft.ServiceBus.SocketConnectionChannelListener`2.OnOpen(TimeSpan timeout)\r\n at Microsoft.ServiceBus.Channels.CommunicationObject.Open(TimeSpan timeout)\r\n at System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)\r\n at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)\r\n at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)\r\n at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)\r\n at System.ServiceModel.Channels.CommunicationObject.Open()\r\n at Service.Program.Main() in C:\\AzureServicesKit\\Labs\\IntroServiceBus\\Ex01-BasicSample\\end\\Service\\Program.cs:line 33\r\n at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)\r\n at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)\r\n at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()\r\n at System.Threading.ThreadHelper.ThreadStart_Context(Object state)\r\n at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n at System.Threading.ThreadHelper.ThreadStart()"
    TargetSite: {System.IdentityModel.Tokens.SecurityToken DoNegotiation(System.TimeSpan)}
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Please Help

    Thanks in advance

Ответы

Все ответы