- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@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
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@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,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@NikitinAndrey,
I would recommend you submit a ticket on the support.powerbi.com site.
Regards,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
08-11-2020 12:44 AM | |||
08-17-2023 11:35 AM | |||
07-18-2024 05:39 AM | |||
Anonymous
| 03-06-2020 09:14 AM | ||
Anonymous
| 12-28-2018 10:13 PM |
User | Count |
---|---|
27 | |
25 | |
25 | |
13 | |
9 |
User | Count |
---|---|
24 | |
19 | |
16 | |
13 | |
10 |