Unable to get the EchoService to work (System.ServiceModel.Security.MessageSecurityException)I keep getting this exception - <strong><em>System.ServiceModel.Security.MessageSecurityException </em></strong> and the inner exception is <br><br><font style="font-size:12px"><strong><em>An error occurred when verifying security for the message.<br></em></strong></font> <p><font style="font-size:12px"><font size=1><font style="font-size:12px"><strong><em>Message: &quot;An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.&quot;<br></em></strong></font></font></font><br>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. <br><br>My solution name is zeppo_az<br><br>Complete Stack Trace<br>-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br><font size=1>{&quot;An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.&quot;}[System.ServiceModel.Security.MessageSecurityException]: {&quot;An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.&quot;}<br>Data: {System.Collections.ListDictionaryInternal}<br>HelpLink: null<br>InnerException: {&quot;An error occurred when verifying security for the message.&quot;}<br>Message: &quot;An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.&quot;<br>Source: &quot;System.ServiceModel&quot;<br>StackTrace: &quot;\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()&quot;<br>TargetSite: {System.IdentityModel.Tokens.SecurityToken DoNegotiation(System.TimeSpan)}<br></font>-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br><br>Please Help <br><br>Thanks in advance<font size=1><br></font><font size=1><font size=1><br></font></font></p>© 2009 Microsoft Corporation. All rights reserved.Mon, 12 Jan 2009 23:25:21 Z985f0cfd-d413-44f3-aa8b-9cf3c860039bhttp://social.msdn.microsoft.com/Forums/en-US/netservices/thread/985f0cfd-d413-44f3-aa8b-9cf3c860039b#985f0cfd-d413-44f3-aa8b-9cf3c860039bhttp://social.msdn.microsoft.com/Forums/en-US/netservices/thread/985f0cfd-d413-44f3-aa8b-9cf3c860039b#985f0cfd-d413-44f3-aa8b-9cf3c860039bzeppohttp://social.msdn.microsoft.com/Profile/en-US/?user=zeppoUnable to get the EchoService to work (System.ServiceModel.Security.MessageSecurityException)I keep getting this exception - <strong><em>System.ServiceModel.Security.MessageSecurityException </em></strong> and the inner exception is <br><br><font style="font-size:12px"><strong><em>An error occurred when verifying security for the message.<br></em></strong></font> <p><font style="font-size:12px"><font size=1><font style="font-size:12px"><strong><em>Message: &quot;An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.&quot;<br></em></strong></font></font></font><br>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. <br><br>My solution name is zeppo_az<br><br>Complete Stack Trace<br>-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br><font size=1>{&quot;An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.&quot;}[System.ServiceModel.Security.MessageSecurityException]: {&quot;An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.&quot;}<br>Data: {System.Collections.ListDictionaryInternal}<br>HelpLink: null<br>InnerException: {&quot;An error occurred when verifying security for the message.&quot;}<br>Message: &quot;An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.&quot;<br>Source: &quot;System.ServiceModel&quot;<br>StackTrace: &quot;\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()&quot;<br>TargetSite: {System.IdentityModel.Tokens.SecurityToken DoNegotiation(System.TimeSpan)}<br></font>-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br><br>Please Help <br><br>Thanks in advance<font size=1><br></font><font size=1><font size=1><br></font></font></p>Mon, 24 Nov 2008 00:33:27 Z2008-11-24T00:33:27Zhttp://social.msdn.microsoft.com/Forums/en-US/netservices/thread/985f0cfd-d413-44f3-aa8b-9cf3c860039b#8a4c181c-18a0-447f-977f-82fc8a54bccfhttp://social.msdn.microsoft.com/Forums/en-US/netservices/thread/985f0cfd-d413-44f3-aa8b-9cf3c860039b#8a4c181c-18a0-447f-977f-82fc8a54bccfClemens Vasters - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Clemens%20Vasters%20-%20MSFTUnable to get the EchoService to work (System.ServiceModel.Security.MessageSecurityException)<p>This looks a bit strange. Sorry for asking, but are you 100% sure your credentials are OK? </p><hr class="sig">--- Clemens Vasters | Technical Lead | Microsoft .NET Service Bus | Microsoft CorporationMon, 24 Nov 2008 18:41:30 Z2008-11-24T18:41:30Zhttp://social.msdn.microsoft.com/Forums/en-US/netservices/thread/985f0cfd-d413-44f3-aa8b-9cf3c860039b#b56fbe06-81ae-42a0-a253-47267b49c168http://social.msdn.microsoft.com/Forums/en-US/netservices/thread/985f0cfd-d413-44f3-aa8b-9cf3c860039b#b56fbe06-81ae-42a0-a253-47267b49c168zeppohttp://social.msdn.microsoft.com/Profile/en-US/?user=zeppoUnable to get the EchoService to work (System.ServiceModel.Security.MessageSecurityException) Clemens - Thank you for your response. I changed the password twice and repeated this exercise on 2 different computers - all with the same result. Is there anything wrong with my solution. I also ran the samples from the .NET Services SDK and I get the same exception. At this point I am totally stuck.<br><br>ThanksThu, 27 Nov 2008 13:05:37 Z2008-11-27T13:05:37Zhttp://social.msdn.microsoft.com/Forums/en-US/netservices/thread/985f0cfd-d413-44f3-aa8b-9cf3c860039b#fcbb9352-c9a6-4c68-a6ac-4814ad06d0cchttp://social.msdn.microsoft.com/Forums/en-US/netservices/thread/985f0cfd-d413-44f3-aa8b-9cf3c860039b#fcbb9352-c9a6-4c68-a6ac-4814ad06d0cczeppohttp://social.msdn.microsoft.com/Profile/en-US/?user=zeppoUnable to get the EchoService to work (System.ServiceModel.Security.MessageSecurityException) Here is an update. I tried this on a Windows XP computer and I am able to get this to work as expected. I am not sure what is preventing this from working properly in my Windows Vista or my Windows Server 2008 machines. Atleast I have a way forward now.Fri, 28 Nov 2008 21:44:25 Z2008-11-28T21:44:25Zhttp://social.msdn.microsoft.com/Forums/en-US/netservices/thread/985f0cfd-d413-44f3-aa8b-9cf3c860039b#2910333b-62ef-449b-b0da-fc1e7d5ce25bhttp://social.msdn.microsoft.com/Forums/en-US/netservices/thread/985f0cfd-d413-44f3-aa8b-9cf3c860039b#2910333b-62ef-449b-b0da-fc1e7d5ce25bJuval Lowyhttp://social.msdn.microsoft.com/Profile/en-US/?user=Juval%20LowyUnable to get the EchoService to work (System.ServiceModel.Security.MessageSecurityException) I get the same error actually on all my demos and samples. I tried both XP and Vista. <br>Any idea...? Fri, 12 Dec 2008 10:09:37 Z2008-12-12T10:09:37Zhttp://social.msdn.microsoft.com/Forums/en-US/netservices/thread/985f0cfd-d413-44f3-aa8b-9cf3c860039b#9791a2af-81bc-4aaf-90fe-ab6a9e6ae059http://social.msdn.microsoft.com/Forums/en-US/netservices/thread/985f0cfd-d413-44f3-aa8b-9cf3c860039b#9791a2af-81bc-4aaf-90fe-ab6a9e6ae059IAPhttp://social.msdn.microsoft.com/Profile/en-US/?user=IAPUnable to get the EchoService to work (System.ServiceModel.Security.MessageSecurityException)I have the same error as well: I'm using only Windows Server 2008 as my development OS, so cannot try other OS's. The only firewall is the one that comes with Server 2008. Tue, 23 Dec 2008 15:42:51 Z2008-12-23T15:42:51Zhttp://social.msdn.microsoft.com/Forums/en-US/netservices/thread/985f0cfd-d413-44f3-aa8b-9cf3c860039b#031ebf38-e35d-40e9-bd4d-01e9890bbee7http://social.msdn.microsoft.com/Forums/en-US/netservices/thread/985f0cfd-d413-44f3-aa8b-9cf3c860039b#031ebf38-e35d-40e9-bd4d-01e9890bbee7IAPhttp://social.msdn.microsoft.com/Profile/en-US/?user=IAPUnable to get the EchoService to work (System.ServiceModel.Security.MessageSecurityException)Update, using the same OS (WS2008 Std), but with a different .NET account, and a reinstall of the CTP, and it still does not work. So it looks to me like an OS problem, or with an installed component.<br><br>As a side note, I changed the authentication type from username &amp; password to cardspace - and this still produced the  same error.<br><br>Has anybody had any success to get this working... I really don't want to change my dev OS just for this!!<br><br>Many thanks<br> Sat, 27 Dec 2008 21:00:31 Z2008-12-27T21:00:31Zhttp://social.msdn.microsoft.com/Forums/en-US/netservices/thread/985f0cfd-d413-44f3-aa8b-9cf3c860039b#b495ca55-1e85-4e87-a576-3f8b9e925397http://social.msdn.microsoft.com/Forums/en-US/netservices/thread/985f0cfd-d413-44f3-aa8b-9cf3c860039b#b495ca55-1e85-4e87-a576-3f8b9e925397Jesse Srogoncikhttp://social.msdn.microsoft.com/Profile/en-US/?user=Jesse%20SrogoncikUnable to get the EchoService to work (System.ServiceModel.Security.MessageSecurityException) I have encountered the same issue. You mention running the example on Windows XP. The Azure SDK requires Vista or Windows Server 2008. How did you subvert the installation prerequisites? Thanks in advance...Mon, 12 Jan 2009 23:25:18 Z2009-01-12T23:25:18Z