Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

"Error generating an asymmetric key." happens when I install data gateway (personal mode)

data gateway (personal mode) worked well on my PC one day ago. To troubleshoot something, I delete personal gateway on service and uninstall data gateway on my PC. But when I reinstall data gateway (personal mode), always "Error generating an asymmetric key." happens. The log is as follows:

 

PersonalGatewayConfigurator.exe Information: 0 : Initialize PersonalGatewayMainViewModel
PersonalGatewayConfigurator.exe Information: 0 : GetConfiguratorStateAsync
PersonalGatewayConfigurator.exe Information: 0 : Value SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Client is not defined in registry.
PersonalGatewayConfigurator.exe Information: 0 : Value SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Client is not defined in registry.
PersonalGatewayConfigurator.exe Information: 0 : Value SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client is not defined in registry.
PersonalGatewayConfigurator.exe Information: 0 : Value SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client is not defined in registry.
PersonalGatewayConfigurator.exe Information: 0 : Value SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Client is not defined in registry.
PersonalGatewayConfigurator.exe Information: 0 : Value SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Client is not defined in registry.
PersonalGatewayConfigurator.exe Information: 0 : Value SOFTWARE\Microsoft\.NETFramework\v4.0.30319 is not defined in registry.
PersonalGatewayConfigurator.exe Information: 0 : Value SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v4.0.30319 is not defined in registry.
PersonalGatewayConfigurator.exe Information: 0 : Configuration client returned null
PersonalGatewayConfigurator.exe Information: 0 : Sign In
PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:28 - 7757f80f-1a45-437a-a8b0-6093f94a5f88] (UnknownClient: 0.0.0.0) MSAL MSAL.Desktop with assembly version '4.7.0.0'. CorrelationId(7757f80f-1a45-437a-a8b0-6093f94a5f88)
PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:28 - 7757f80f-1a45-437a-a8b0-6093f94a5f88] (UnknownClient: 0.0.0.0) === InteractiveParameters Data ===
LoginHint provided: False
User provided: False
UseEmbeddedWebView: NotSpecified
ExtraScopesToConsent:
Prompt: select_account
HasCustomWebUi: False

PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:28 - 7757f80f-1a45-437a-a8b0-6093f94a5f88] (UnknownClient: 0.0.0.0) === InteractiveParameters Data ===
LoginHint provided: False
User provided: False
UseEmbeddedWebView: NotSpecified
ExtraScopesToConsent:
Prompt: select_account
HasCustomWebUi: False

PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:28 - 7757f80f-1a45-437a-a8b0-6093f94a5f88] (UnknownClient: 0.0.0.0)
=== Request Data ===
Authority Provided? - True
Scopes - https://analysis.windows.net/powerbi/api/user_impersonation
Extra Query Params Keys (space separated) -

PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:28 - 7757f80f-1a45-437a-a8b0-6093f94a5f88] (UnknownClient: 0.0.0.0) === Token Acquisition (InteractiveRequest) started:

Authority Host: login.microsoftonline.com
PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:28 - 7757f80f-1a45-437a-a8b0-6093f94a5f88] (UnknownClient: 0.0.0.0) [Instance Discovery] Tried to use network cache provider for login.microsoftonline.com. Success? False
PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:28 - 7757f80f-1a45-437a-a8b0-6093f94a5f88] (UnknownClient: 0.0.0.0) Fetching instance discovery from the network from host login.microsoftonline.com
PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:29 - 7757f80f-1a45-437a-a8b0-6093f94a5f88] (UnknownClient: 0.0.0.0) [Instance Discovery] Tried to use network cache provider for login.microsoftonline.com. Success? True
PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:29 - 7757f80f-1a45-437a-a8b0-6093f94a5f88] (UnknownClient: 0.0.0.0) [Instance Discovery] After hitting the discovery endpoint, the network provider found an entry for login.microsoftonline.com ? True
PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:29 - 7757f80f-1a45-437a-a8b0-6093f94a5f88] (UnknownClient: 0.0.0.0) Resolving authority endpoints... Already resolved? - FALSE
PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:30 - 7757f80f-1a45-437a-a8b0-6093f94a5f88] (UnknownClient: 0.0.0.0)
PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:31 - 7757f80f-1a45-437a-a8b0-6093f94a5f88] (UnknownClient: 0.0.0.0)
PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:31 - 7757f80f-1a45-437a-a8b0-6093f94a5f88] (UnknownClient: 0.0.0.0)
PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:34 - 7757f80f-1a45-437a-a8b0-6093f94a5f88] (UnknownClient: 0.0.0.0)
PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:35 - 7757f80f-1a45-437a-a8b0-6093f94a5f88] (UnknownClient: 0.0.0.0)
PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:36 - 7757f80f-1a45-437a-a8b0-6093f94a5f88] (UnknownClient: 0.0.0.0)
PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:36 - 7757f80f-1a45-437a-a8b0-6093f94a5f88] (UnknownClient: 0.0.0.0) Redirect Uri was reached. Stopping webview navigation...
PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:36 - 7757f80f-1a45-437a-a8b0-6093f94a5f88] (UnknownClient: 0.0.0.0) WebBrowser state: IsBusy: True, ReadyState: Interactive, Created: True, Disposing: False, IsDisposed: False, IsOffline: False
PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:36 - 7757f80f-1a45-437a-a8b0-6093f94a5f88] (UnknownClient: 0.0.0.0) WebBrowser state (after Stop): IsBusy: True, ReadyState: Interactive, Created: True, Disposing: False, IsDisposed: False, IsOffline: False
PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:36 - 7757f80f-1a45-437a-a8b0-6093f94a5f88] (UnknownClient: 0.0.0.0) Based on auth code received from STS, broker invocation is not required.
PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:37 - 7757f80f-1a45-437a-a8b0-6093f94a5f88] (UnknownClient: 0.0.0.0) Checking client info returned from the server..
PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:37 - 7757f80f-1a45-437a-a8b0-6093f94a5f88] (UnknownClient: 0.0.0.0) Saving Token Response to cache..
PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:37 - 7757f80f-1a45-437a-a8b0-6093f94a5f88] (UnknownClient: 0.0.0.0) [Instance Discovery] Tried to use network cache provider for login.microsoftonline.com. Success? True
PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:37 - 7757f80f-1a45-437a-a8b0-6093f94a5f88] (UnknownClient: 0.0.0.0) [Instance Discovery] The network provider found an entry for login.microsoftonline.com
PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:37 - 7757f80f-1a45-437a-a8b0-6093f94a5f88] (UnknownClient: 0.0.0.0) Looking for scopes for the authority in the cache which intersect with https://analysis.windows.net/powerbi/api/user_impersonation
PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:37 - 7757f80f-1a45-437a-a8b0-6093f94a5f88] (UnknownClient: 0.0.0.0) Intersecting scope entries count - 0
PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:37 - 7757f80f-1a45-437a-a8b0-6093f94a5f88] (UnknownClient: 0.0.0.0) Matching entries after filtering by user - 0
PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:37 - 7757f80f-1a45-437a-a8b0-6093f94a5f88] (UnknownClient: 0.0.0.0) Saving RT in cache...
PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:37] (UnknownClient: 0.0.0.0) Serializing token cache with 1 items.
PersonalGatewayConfigurator.exe Information: 0 : (False) MSAL 4.7.0.0 MSAL.Desktop Microsoft Windows NT 6.2.9200.0 [02/06/2020 00:23:37 - 7757f80f-1a45-437a-a8b0-6093f94a5f88] (UnknownClient: 0.0.0.0) === Token Acquisition finished successfully. An access token was returned with Expiration Time: 02/06/2020 01:23:36 +00:00 ===
PersonalGatewayConfigurator.exe Information: 0 : backendUriFromService: https://wabi-north-europe-redirect.analysis.windows.net/
PersonalGatewayConfigurator.exe Information: 0 : Service returned 0 personal gateways for this user
PersonalGatewayConfigurator.exe Information: 0 : Model gateway state: Unconfigured
PersonalGatewayConfigurator.exe Information: 0 : Service returned 0 personal gateways for this user
PersonalGatewayConfigurator.exe Information: 0 : Creating personal gateway
PersonalGatewayConfigurator.exe Information: 0 : Generating asymmetric key
PersonalGatewayConfigurator.exe Error: 0 : Exception: System.AggregateException: One or more errors occurred. ---> Microsoft.PowerBI.DataMovement.Pipeline.GatewayClient.GatewayConfigurationClientException: Error generating an asymmetric key. ---> System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: Keyset as registered is invalid.


Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
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.PowerBI.DataMovement.Pipeline.ConfigurationContracts.IGatewayConfigurationService.GenerateAsymmetricKey()
at Microsoft.PowerBI.DataMovement.Pipeline.GatewayClient.GatewayConfigurationClient.GenerateAsymmetricKey()
--- End of inner exception stack trace ---
at Microsoft.PowerBI.DataMovement.Pipeline.GatewayClient.GatewayConfigurationClient.GenerateAsymmetricKey()
at Microsoft.PowerBI.DataMovement.GatewayCommon.DmtsGatewayCreation.CreateAndUpdateLocalService(String gatewayName, SecureString recoveryKey, String salt, Uri dmtsBackendUri)
at Microsoft.PowerBI.DataMovement.GatewayUiCommon.WizardSignInViewModel.ReconcileAndCreatePGWIfNeeded(IHttpClientDecorator httpDecorator)
at Microsoft.PowerBI.DataMovement.GatewayUiCommon.WizardSignInViewModel.<StartSignIn>d__35.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.PowerBI.DataMovement.GatewayUiCommon.WizardSignInViewModel.<DoNext>d__29.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Microsoft.PowerBI.DataMovement.GatewayUiCommon.WizardViewModelBase.DoNextWorker(Object param)
at Microsoft.PowerBI.DataMovement.GatewayUiCommon.RelayCommand.<>c__DisplayClass19_0.<Execute>b__0()
---> (Inner Exception #0) Microsoft.PowerBI.DataMovement.Pipeline.GatewayClient.GatewayConfigurationClientException: Error generating an asymmetric key. ---> System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: Keyset as registered is invalid.


Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
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.PowerBI.DataMovement.Pipeline.ConfigurationContracts.IGatewayConfigurationService.GenerateAsymmetricKey()
at Microsoft.PowerBI.DataMovement.Pipeline.GatewayClient.GatewayConfigurationClient.GenerateAsymmetricKey()
--- End of inner exception stack trace ---
at Microsoft.PowerBI.DataMovement.Pipeline.GatewayClient.GatewayConfigurationClient.GenerateAsymmetricKey()
at Microsoft.PowerBI.DataMovement.GatewayCommon.DmtsGatewayCreation.CreateAndUpdateLocalService(String gatewayName, SecureString recoveryKey, String salt, Uri dmtsBackendUri)
at Microsoft.PowerBI.DataMovement.GatewayUiCommon.WizardSignInViewModel.ReconcileAndCreatePGWIfNeeded(IHttpClientDecorator httpDecorator)
at Microsoft.PowerBI.DataMovement.GatewayUiCommon.WizardSignInViewModel.<StartSignIn>d__35.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.PowerBI.DataMovement.GatewayUiCommon.WizardSignInViewModel.<DoNext>d__29.MoveNext()<---

PersonalGatewayConfigurator.exe Information: 0 : Update checks
PersonalGatewayConfigurator.exe Information: 0 : Create web request for Uri: http://www.msftncsi.com/ncsi.txt
PersonalGatewayConfigurator.exe Information: 0 : Response status: OK
PersonalGatewayConfigurator.exe Information: 0 : Create httpClient request for Uri: http://www.msftncsi.com/ncsi.txt
PersonalGatewayConfigurator.exe Information: 0 : Response status: OK
PersonalGatewayConfigurator.exe Information: 0 : Create httpclient request for Uri: http://www.msftncsi.com/ncsi.txt
PersonalGatewayConfigurator.exe Information: 0 : Response status: OK
PersonalGatewayConfigurator.exe Information: 0 : Value SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Client is not defined in registry.
PersonalGatewayConfigurator.exe Information: 0 : Value SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Client is not defined in registry.
PersonalGatewayConfigurator.exe Information: 0 : Value SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client is not defined in registry.
PersonalGatewayConfigurator.exe Information: 0 : Value SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client is not defined in registry.
PersonalGatewayConfigurator.exe Information: 0 : Value SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Client is not defined in registry.
PersonalGatewayConfigurator.exe Information: 0 : Value SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Client is not defined in registry.
PersonalGatewayConfigurator.exe Information: 0 : Value SOFTWARE\Microsoft\.NETFramework\v4.0.30319 is not defined in registry.
PersonalGatewayConfigurator.exe Information: 0 : Value SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v4.0.30319 is not defined in registry.

Status: New
Comments
v-chuncz-msft
Community Support
Anonymous
Not applicable

Hi,

 

Unfortunately the problem remains after I try the solution you mentioned.

bschumacher
Regular Visitor

@Anonymous 

 

Were you able to resolve this issue? I am now experiencing the same issue.

Anonymous
Not applicable

@bschumacher 

 

Yes, my problem has been resolved. The reason is McAfee refused RSA file accessed by personal gateway on my PC. So I asked my IT support to add personal On-premises data gateway into white list of McAfee to get the problem solved.