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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
jgil
Frequent Visitor

Personal Gateway Error

Error generating an asymmetric key.
Exception message: Keyset as registered is invalid.

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()An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.Security.Cryptography.CryptographicException: Keyset as registered is invalid.

at System.Security.Cryptography.Utils.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer)
at System.Security.Cryptography.Utils.GetKeyPairHelper(CspAlgorithmType keyType, CspParameters parameters, Boolean randomKeyContainer, Int32 dwKeySize, SafeProvHandle& safeProvHandle, SafeKeyHandle& safeKeyHandle)
at System.Security.Cryptography.RSACryptoServiceProvider.GetKeyPair()
at System.Security.Cryptography.RSACryptoServiceProvider..ctor(Int32 dwKeySize, CspParameters parameters, Boolean useDefaultKeySize)
at Microsoft.PowerBI.DataMovement.Pipeline.GatewayServiceHost.AsymmetricKeyGenerator.ProduceAsymmetricKey(String containerName, Boolean cleanUpOldKeys, Int32 rsaKeySize)
at Microsoft.PowerBI.DataMovement.Pipeline.GatewayPipelineTelemetry.PipelineTelemetryService.ExecuteInActivity[T](PipelineActivityType pipelineActivityType, Func`1 action)
at SyncInvokeGenerateAsymmetricKey(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

Hi @jgil ,

Check if  your antivirus  was blocking the sign in.

And make sure you are using the latest version of personal gateway. Also check whether your computer meets the installation requirements(A 64-bit version of Windows operating systems) and some limitations (such as cannot be installed on a domain controller) should be avoided. Please find the installation details in this documentation.

And try to removing the "RSA" folder which is in the "C: \ Users \" NAME USER "\ AppData \ Roaming \ Microsoft \ Crypto" path.
The error occurred for some reason of encryption with the application's user installer.After removing the folder, simply start the Gateway setup again.

refer to the answers.

ERROR installing On-premises data gateway (personal mode) 

Keyset as register is invalid 

https://community.powerbi.com/t5/Desktop/On-Premises-Gateway-personal-Mode-is-not-working-error-Keys... 

https://community.powerbi.com/t5/Power-Query/On-premises-data-gateway-personal-mode-Key-Error/td-p/2... 

vluwangmsft_0-1625723416013.png

 

 

 

Best regards,
Lucien Wang 

View solution in original post

2 REPLIES 2
v-luwang-msft
Community Support
Community Support

Hi @jgil ,

Has your problem been solved, if so, please consider Accept a correct reply as the solution or share your own solution to help others find it.

 

 

Best Regards
Lucien

v-luwang-msft
Community Support
Community Support

Hi @jgil ,

Check if  your antivirus  was blocking the sign in.

And make sure you are using the latest version of personal gateway. Also check whether your computer meets the installation requirements(A 64-bit version of Windows operating systems) and some limitations (such as cannot be installed on a domain controller) should be avoided. Please find the installation details in this documentation.

And try to removing the "RSA" folder which is in the "C: \ Users \" NAME USER "\ AppData \ Roaming \ Microsoft \ Crypto" path.
The error occurred for some reason of encryption with the application's user installer.After removing the folder, simply start the Gateway setup again.

refer to the answers.

ERROR installing On-premises data gateway (personal mode) 

Keyset as register is invalid 

https://community.powerbi.com/t5/Desktop/On-Premises-Gateway-personal-Mode-is-not-working-error-Keys... 

https://community.powerbi.com/t5/Power-Query/On-premises-data-gateway-personal-mode-Key-Error/td-p/2... 

vluwangmsft_0-1625723416013.png

 

 

 

Best regards,
Lucien Wang 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.