cancel
Showing results for 
Search instead for 
Did you mean: 

On- Premises Data Gateway: Getting the error: Error generating an asymmetric key.

Hi,

In On-premises Data Gateway, I'm getting the following error:

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

Keyset as registered is invalid.


Kindly help me in solving this issue, as it is very important to complete it ASAP.

 

Inserting image of error:

 

@DAN Screenshot (85).png

Status: New
Comments
Regular Visitor

Log:

 

 

 

 

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)
Regular Visitor
Resolver II

Try removing the below folders and check again. 

 

%APPDATA%\Microsoft\Crypto\RSA

Regular Visitor

Hi @lalthan .

 

I have removed the file as you requested, and the error still exists.

Regular Visitor

@v-juanli-msft  I couldn't sign in, in my first attempt itself.

Community Support

@arun_c94 ,

 

Does this issue occur when you install gateway(personal mode) in the first time or migrate the gateway? Please clarify more details. In addtion, make sure the data gateway is in latest version.

 

Regards,

Jimmy Tao

Regular Visitor

Hi Jimmy,

 

@v-yuta-msft  This had happened when I'm installing it for the fist time. until sign - in, it's fine.

 

Data gateway is installed only 2 days before. It's the latest one.

Regular Visitor

Hi Guys,

 

Any solutions please..

Regular Visitor

Same errors for me.

Regular Visitor

Did you get this resolved? I'm getting the same issue