Hi,
Ive installed SQL Data Sync Agent Client (Preview) on my database server to try out SQL Azure Data Sync Service. Using the agent access key generated from SQL Data Sync web portal, Ive attempted to submit this key to SQL Data Sync Agent Client. After selecting OK, I receive the following error:
Please enter a valid agent key to proceed. The key must be generated from SQL Data Sync web portal.
In the event log the following error is logged:
id:LocalAgentHost_Exception, rId:, sId:00000000-0000-0000-0000-000000000000, traceLevel:Error, agentId:00000000-0000-0000-0000-000000000000, agentInstanceId:7dfe16ca-80da-46e1-8bf2-fd7aca9f326c, version:4.0.89.0, e:'Type=System.ServiceModel.Security.MessageSecurityException,Message=An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.,Source=mscorlib,StackTrace=
Server stack trace:
at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.ProcessReply(Message reply, SecurityProtocolCorrelationState correlationState, TimeSpan timeout)
at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.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 Microsoft.SqlAzureDataSync.LocatorServiceApi.ILocatorAgentServiceApi.GetScaleUnitForAgentV2()
at Microsoft.SqlAzureDataSync.LocatorServiceApi.LocatorServiceAgentProxy.<>c__DisplayClass4.<GetScaleUnitForAgentV2>b__3()
at Microsoft.SqlAzureDataSync.ClientServerCommon.ClientProxyBase`1.ExecuteRequest(Action serviceCall)
at Microsoft.SqlAzureDataSync.LocatorServiceApi.LocatorServiceAgentProxy.GetScaleUnitForAgentV2()
at Microsoft.SqlAzureDataSync.LocalAgentHost.AgentConfigDataManager.DownloadAndCacheServiceUrisFromLocator(Guid agentId, String agentKey),'
'Type=System.ServiceModel.FaultException,Message=An error occurred when verifying security for the message.,Source=,StackTrace=,', methodName:AgentConfigDataManager.DownloadAndCacheServiceUrisFromLocator, message:Microsoft SQL Data Sync Windows service was unable to download information from SQL Data Sync Locator Service. Please generate a new agent key and resubmit. Exception: Please enter a valid agent key to proceed. The key must be generated from SQL Data Sync web portal., eType:'Type=System.ServiceModel.Security.MessageSecurityException', eMessage:'Message=An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.', eTypeInner:'Type=System.ServiceModel.FaultException', eMessageInner:'Message=An error occurred when verifying security for the message.'
Followed by:
id:LocalAgentHost_Exception, rId:, sId:00000000-0000-0000-0000-000000000000, traceLevel:Error, agentId:00000000-0000-0000-0000-000000000000, agentInstanceId:7dfe16ca-80da-46e1-8bf2-fd7aca9f326c, version:4.0.89.0, e:'Type=System.ServiceModel.Security.MessageSecurityException,Message=An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.,Source=mscorlib,StackTrace=
Server stack trace:
at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.ProcessReply(Message reply, SecurityProtocolCorrelationState correlationState, TimeSpan timeout)
at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.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 Microsoft.SqlAzureDataSync.LocatorServiceApi.ILocatorAgentServiceApi.GetScaleUnitForAgentV2()
at Microsoft.SqlAzureDataSync.LocatorServiceApi.LocatorServiceAgentProxy.<>c__DisplayClass4.<GetScaleUnitForAgentV2>b__3()
at Microsoft.SqlAzureDataSync.ClientServerCommon.ClientProxyBase`1.ExecuteRequest(Action serviceCall)
at Microsoft.SqlAzureDataSync.LocatorServiceApi.LocatorServiceAgentProxy.GetScaleUnitForAgentV2()
at Microsoft.SqlAzureDataSync.LocalAgentHost.AgentConfigDataManager.DownloadAndCacheServiceUrisFromLocator(Guid agentId, String agentKey)
at Microsoft.SqlAzureDataSync.LocalAgentHost.ClientUXService.SubmitAgentKey(String agentIdKey),'
'Type=System.ServiceModel.FaultException,Message=An error occurred when verifying security for the message.,Source=,StackTrace=,', methodName:ClientUXService.SubmitAgentKey, message:Unable to authenticate agent key with the SQL Data Sync. Please check Event Log for details and try again. Exception: Please enter a valid agent key to proceed. The key must be generated from SQL Data Sync web portal., eType:'Type=System.ServiceModel.Security.MessageSecurityException', eMessage:'Message=An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.', eTypeInner:'Type=System.ServiceModel.FaultException', eMessageInner:'Message=An error occurred when verifying security for the message.'
Followed by id:
LocalAgentHost_Info, rId:, sId:00000000-0000-0000-0000-000000000000, traceLevel:Error, agentId:00000000-0000-0000-0000-000000000000, agentInstanceId:7dfe16ca-80da-46e1-8bf2-fd7aca9f326c, version:4.0.89.0, methodName:ClientUXService.SubmitAgentKey, message:Please enter a valid agent key to proceed. The key must be generated from SQL Data Sync web portal.
My server id is: y2sj6bb8ph
Region: North Europe
Time / Date: 20:12:04 (18/04/13) also tried several times yesterday evening (17/04/2013 20:45 to 21:45)
Tracing Id: Dont have a trace id but agent instance id is: 7dfe16ca-80da-46e1-8bf2-fd7aca9f326c
Server: Windows Server 2012 Data Center
SQL Server: SQL Server 2012
Additionally I have:
- Followed SQL Data Sync Troubleshooting guide
- Checked firewall configuration (outbound connection port 443 enabled)
- Security on Client Azure Sync Service
- Can access https://locator.sync.azure.com/LocatorServiceApi.svc
- SQL Azure Data Sync Client Version in the registry under HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\SQL Azure Data Sync\Version is 4.0.89.0
Although this shouldnt be an issue, my local database server is on a Hyper-V VM
Any help appreciated.
Thanks,
Sama