Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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)
@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
@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,
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,
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
15 | |
15 | |
13 | |
12 | |
11 |