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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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