Forum Discussion
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
- AnonymousNot applicable
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- NikitinAndreyRegular Visitor
- AnonymousNot applicable
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,