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
NikitinAndrey
Regular Visitor

On-premies data gateway (personal mode). Windows Server 2016. Error generating an asymmetric key.

I have try install On-premies data gateway (personal mode) on Windows Server 2016

on different way but without success.

- run as Admin

- install in simple path

- run installation from Root dir of disks

- clean register by other softs ater uninstall

 

What is the way to solve ?

 

The main error:

 

Error generating an asymmetric key.
Ключ не может быть использован в указанном состоянии.


Server stack trace:
в System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
в System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
в System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
в System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
в System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
в System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
в System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
в Microsoft.PowerBI.DataMovement.Pipeline.InternalContracts.IGatewayConfigurationService.GenerateAsymmetricKey()
в Microsoft.PowerBI.DataMovement.Pipeline.GatewayClient.GatewayConfigurationClient.GenerateAsymmetricKey()ExceptionDetail, возможно созданный параметром IncludeExceptionDetailInFaults=true, имеющим следующее значение:
System.Security.Cryptography.CryptographicException: Ключ не может быть использован в указанном состоянии.

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

5 REPLIES 5
v-yuezhe-msft
Employee
Employee

@NikitinAndrey,

When installing gateway, please review the considerations described in this article, also ensure that you add required ports and whitelist the IP addresses in your firewall.

If the above error still occurs, please collect Power BI gateway setup log which can be found in %localappdata%\Temp\On-premises_data_gateway_(personal_mode)_*.log.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello

 

Thanks for answer

Yes i see that article and recheck config

The latest error log from link that you send i upload on dropbox and anyone can download throug link

Log 1

Log 2

@NikitinAndrey,

From the above error log, I found the following error message:

GatewayConfigurationClientException: Error getting Gateway data directory. ---> System.IO.FileNotFoundException: Не удалось загрузить файл или сборку "Microsoft.PowerBI.DataMovement.ExternalContracts, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" либо одну из их зависимостей. Не удается найти указанный

I translate it to English: "The file or assembly "Microsoft.PowerBI.DataMovement.ExternalContracts, Version = 13.0.0.0, Culture = neutral, PublicKeyToken = 89845dcd8080cc91" or one of their dependencies could not be loaded" . It seems that the dll file is corrupted in your machine, do you download a complete installation package?

Also please check if the Microsoft.PowerBI.DataMovement.ExternalContracts.dll exists in the folder Users\YourAdministrator\AppData\Local\Microsoft\On-premises data gateway (personal mode). If it exists, rename it to Microsoft.PowerBI.DataMovement.ExternalContracts.old.dll, then add the attached file to your folder and check if you can install gateway.

Regards,

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello @v-yuezhe-msft

 

Thanks for answer

 

I have checked:

1) Microsoft.PowerBI.DataMovement.ExternalContracts.dll exist in that dir size 121 kB / from 24 May current year

2) i renamed it as you recomend

3) copy your dll

4) it take same size and time of creation

 

and same error in installation process

 

 

@NikitinAndrey,

I would recommend you submit a ticket on the support.powerbi.com site.

Regards,

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

Top Solution Authors
Top Kudoed Authors