Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Error: generating an assymetric key during re-installation On-premises data gateway (personal mode)

Hi,

 

I'm trying to re-install an On-premises data gateway (personal mode), however I get an error (more details, see below).

I believe the issue comes from some artifacts from my previous gateway.

 

image.png

 

Is there a way to completely remove/erase my previous data gateway configuration?

In app.powerbi.com > Manage gateways, I don't have any gateways.

 

Error generating an asymmetric key.
Key not valid for use in specified state.


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.InternalContracts.IGatewayConfigurationService.GenerateAsymmetricKey()
at Microsoft.PowerBI.DataMovement.Pipeline.GatewayClient.GatewayConfigurationClient.GenerateAsymmetricKey()An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.Security.Cryptography.CryptographicException: Key not valid for use in specified state.

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.CommonUtilities.AsymmetricKeyEncryptionHelper.ProduceAsymmetricKey(String containerName, Boolean cleanUpOldKeys)
at Microsoft.PowerBI.DataMovement.Pipeline.Common.Diagnostics.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)

2 REPLIES 2
v-yuezhe-msft
Employee
Employee

@Anonymous,

Please go to control panel, uninstall personal mode gateway completely, reboot your machine and re-install the gateway.

If the issue still persists, please share gateway installer log which is located at C:\Users\yourusername\AppData\Local\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.
Anonymous
Not applicable

@v-yuezhe-msft

 

I've tried once more what you suggested, no change however.

 

My log-file:

On-premises_data_gateway_(personal_mode)_20180911102852.log

 

[53E4:3268][2018-09-11T10:28:52]i001: Burn v3.10.1.2213, Windows v10.0 (Build 17134: Service Pack 0), path: C:\Users\<username>\AppData\Local\Temp\4j4nhf3j.zb3\GatewayInstall.exe
[53E4:3268][2018-09-11T10:28:52]i000: Initializing string variable 'InstallationTelemetryEnabled' to value 'true'
[53E4:3268][2018-09-11T10:28:52]i000: Initializing string variable 'InstallFolder' to value '[LocalAppDataFolder]Microsoft\On-premises data gateway (personal mode)'
[53E4:3268][2018-09-11T10:28:52]i000: Initializing string variable 'ProcessName' to value 'PersonalGatewayConfigurator'
[53E4:3268][2018-09-11T10:28:52]i009: Command Line: ''
[53E4:3268][2018-09-11T10:28:52]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\<username>\AppData\Local\Temp\On-premises_data_gateway_(personal_mode)_20180911102852.log'
[53E4:3268][2018-09-11T10:28:52]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Users\<username>\AppData\Local\Temp\4j4nhf3j.zb3\GatewayInstall.exe'
[53E4:3268][2018-09-11T10:28:52]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\Users\<username>\AppData\Local\Temp\4j4nhf3j.zb3\'
[53E4:3268][2018-09-11T10:28:52]i000: Setting string variable 'WixBundleName' to value 'On-premises data gateway (personal mode)'
[53E4:3268][2018-09-11T10:28:52]i000: Setting string variable 'WixBundleManufacturer' to value 'Microsoft Corporation'
[53E4:3268][2018-09-11T10:28:52]i000: Loading managed bootstrapper application.
[53E4:3268][2018-09-11T10:28:52]i000: Creating BA thread to run asynchronously.
[53E4:3884][2018-09-11T10:28:52]i000: launching the on-premises data gateway (personal mode) installation
[53E4:3884][2018-09-11T10:28:52]i000: creating UI
[53E4:3268][2018-09-11T10:28:52]i100: Detect begin, 2 packages
[53E4:3268][2018-09-11T10:28:52]i000: Setting string variable 'NETFRAMEWORK45' to value '461808'
[53E4:3268][2018-09-11T10:28:52]i000: Product or related product not found: {09CC383D-3D6C-4FBF-A9C1-D1569313D2C1}
[53E4:3268][2018-09-11T10:28:52]i000: Setting version variable 'ComponentsVersion' to value '0.0.0.0'
[53E4:3268][2018-09-11T10:28:52]i052: Condition 'NETFRAMEWORK45 >= 393295' evaluates to true.
[53E4:3268][2018-09-11T10:28:52]i101: Detected package: NetFx46Web, state: Present, cached: None
[53E4:3268][2018-09-11T10:28:52]i101: Detected package: PersonalGatewayComponents.msi, state: Absent, cached: None
[53E4:3268][2018-09-11T10:28:52]i199: Detect complete, result: 0x0
[53E4:3268][2018-09-11T10:29:08]i200: Plan begin, 2 packages, action: Install
[53E4:3268][2018-09-11T10:29:08]w321: Skipping dependency registration on package with no dependency providers: NetFx46Web
[53E4:3268][2018-09-11T10:29:08]i000: Setting string variable 'WixBundleRollbackLog_PersonalGatewayComponents.msi' to value 'C:\Users\<username>\AppData\Local\Temp\On-premises_data_gateway_(personal_mode)_20180911102852_000_PersonalGatewayComponents.msi_rollback.log'
[53E4:3268][2018-09-11T10:29:08]i000: Setting string variable 'WixBundleLog_PersonalGatewayComponents.msi' to value 'C:\Users\<username>\AppData\Local\Temp\On-premises_data_gateway_(personal_mode)_20180911102852_000_PersonalGatewayComponents.msi.log'
[53E4:3268][2018-09-11T10:29:08]i201: Planned package: NetFx46Web, state: Present, default requested: Present, ba requested: Present, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[53E4:3268][2018-09-11T10:29:08]i201: Planned package: PersonalGatewayComponents.msi, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: Register
[53E4:3268][2018-09-11T10:29:08]i299: Plan complete, result: 0x0
[53E4:3268][2018-09-11T10:29:08]i300: Apply begin
[53E4:3268][2018-09-11T10:29:08]i370: Session begin, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{f73a836c-c235-4e38-b372-cf40f34892e2}, options: 0x7, disable resume: No
[53E4:3268][2018-09-11T10:29:08]i000: Caching bundle from: 'C:\Users\<username>\AppData\Local\Temp\{f73a836c-c235-4e38-b372-cf40f34892e2}\.be\PersonalGateway-prod.exe' to: 'C:\Users\<username>\AppData\Local\Package Cache\{f73a836c-c235-4e38-b372-cf40f34892e2}\PersonalGateway-prod.exe'
[53E4:3268][2018-09-11T10:29:08]i320: Registering bundle dependency provider: {f73a836c-c235-4e38-b372-cf40f34892e2}, version: 14.16.6792.1
[53E4:3268][2018-09-11T10:29:08]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{f73a836c-c235-4e38-b372-cf40f34892e2}, resume: Active, restart initiated: No, disable resume: No
[53E4:45FC][2018-09-11T10:29:08]i305: Verified acquired payload: PersonalGatewayComponents.msi at path: C:\Users\<username>\AppData\Local\Package Cache\.unverified\PersonalGatewayComponents.msi, moving to: C:\Users\<username>\AppData\Local\Package Cache\{2B525D86-ECC2-465D-BE42-C06B09BCFF20}v14.16.6792.1\PersonalGatewayComponents.msi.
[53E4:3268][2018-09-11T10:29:08]i323: Registering package dependency provider: {2B525D86-ECC2-465D-BE42-C06B09BCFF20}, version: 14.16.6792.1, package: PersonalGatewayComponents.msi
[53E4:3268][2018-09-11T10:29:08]i301: Applying execute package: PersonalGatewayComponents.msi, action: Install, path: C:\Users\<username>\AppData\Local\Package Cache\{2B525D86-ECC2-465D-BE42-C06B09BCFF20}v14.16.6792.1\PersonalGatewayComponents.msi, arguments: ' ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7" INSTALLLOCATION="C:\Users\<username>\AppData\Local\Microsoft\On-premises data gateway (personal mode)" PBISERVICEENV="prod" CLIENTTELEMETRYOPTION=""'
[53E4:3268][2018-09-11T10:29:16]i319: Applied execute package: PersonalGatewayComponents.msi, result: 0x0, restart: None
[53E4:3268][2018-09-11T10:29:16]i325: Registering dependency: {f73a836c-c235-4e38-b372-cf40f34892e2} on package provider: {2B525D86-ECC2-465D-BE42-C06B09BCFF20}, package: PersonalGatewayComponents.msi
[53E4:3268][2018-09-11T10:29:16]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{f73a836c-c235-4e38-b372-cf40f34892e2}, resume: ARP, restart: None, disable resume: No
[53E4:3268][2018-09-11T10:29:16]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{f73a836c-c235-4e38-b372-cf40f34892e2}, resume: ARP, restart initiated: No, disable resume: No
[53E4:3268][2018-09-11T10:29:18]i000: Bootstrapper = Microsoft.DataProxy.EgwInstallBA.CustomBA
BundlePath = C:\Users\<username>\AppData\Local\Temp\{f73a836c-c235-4e38-b372-cf40f34892e2}\.ba1
BundleVersion = 14.16.6792.1
Canceled = True
Command = Microsoft.Tools.WindowsInstallerXml.Bootstrapper.Command
DoingBundleInstall = True
DoingBundleUpgrade = False
Engine = Microsoft.Tools.WindowsInstallerXml.Bootstrapper.Engine
ErrorMessage = null
ExecutablePath = C:\Users\<username>\AppData\Local\Microsoft\On-premises data gateway (personal mode)\PersonalGatewayConfigurator.exe
GetInstallationType = Install
GetInstallationTypeStrings = Microsoft.DataProxy.EgwInstallBA.InstallationTypeStrings
GetTelemetryFileVersion = File: C:\Users\<username>\AppData\Local\Temp\{f73a836c-c235-4e38-b372-cf40f34892e2}\.ba1\Microsoft.PowerBI.Telemetry.dll
InternalName: Microsoft.PowerBI.Telemetry.dll
OriginalFilename: Microsoft.PowerBI.Telemetry.dll
FileVersion: 13.0.5428.0
FileDescription: Microsoft Power BI Telemetry Service
Product: Microsoft SQL Server
ProductVersion: 13.0.5428.0
Debug: False
Patched: False
PreRelease: False
PrivateBuild: False
SpecialBuild: False
Language: Language Neutral

HasBattery = True
HasWifiCard = True
InstallationTelemetryEnabled = True
InstalledBundleVersion = null
InstallPath = C:\Users\<username>\AppData\Local\Microsoft\On-premises data gateway (personal mode)
IsArchitectureSupported = True
IsPersonalGateway = True
IsSleepEnabled = False
IsUiVisible = True
IsUnsupportedOS = False
NotAdmin = False
ProcessName = PersonalGatewayConfigurator
RelevantErrorLog = null
Result = 0
SuccessfulAction = True
UnsuccessfulAction = False

[53E4:3268][2018-09-11T10:29:18]i399: Apply complete, result: 0x0, restart: None, ba requested restart: No
[53E4:3268][2018-09-11T10:29:18]i500: Shutting down, exit code: 0x0
[53E4:3268][2018-09-11T10:29:18]i410: Variable: ComponentsVersion = 0.0.0.0
[53E4:3268][2018-09-11T10:29:18]i410: Variable: InstallationTelemetryEnabled = true
[53E4:3268][2018-09-11T10:29:18]i410: Variable: InstallFolder = C:\Users\<username>\AppData\Local\Microsoft\On-premises data gateway (personal mode)
[53E4:3268][2018-09-11T10:29:18]i410: Variable: LocalAppDataFolder = C:\Users\<username>\AppData\Local\
[53E4:3268][2018-09-11T10:29:18]i410: Variable: NETFRAMEWORK45 = 461808
[53E4:3268][2018-09-11T10:29:18]i410: Variable: ProcessName = PersonalGatewayConfigurator
[53E4:3268][2018-09-11T10:29:18]i410: Variable: WixBundleAction = 5
[53E4:3268][2018-09-11T10:29:18]i410: Variable: WixBundleElevated = 0
[53E4:3268][2018-09-11T10:29:18]i410: Variable: WixBundleLog = C:\Users\<username>\AppData\Local\Temp\On-premises_data_gateway_(personal_mode)_20180911102852.log
[53E4:3268][2018-09-11T10:29:18]i410: Variable: WixBundleLog_PersonalGatewayComponents.msi = C:\Users\<username>\AppData\Local\Temp\On-premises_data_gateway_(personal_mode)_20180911102852_000_PersonalGatewayComponents.msi.log
[53E4:3268][2018-09-11T10:29:18]i410: Variable: WixBundleManufacturer = Microsoft Corporation
[53E4:3268][2018-09-11T10:29:18]i410: Variable: WixBundleName = On-premises data gateway (personal mode)
[53E4:3268][2018-09-11T10:29:18]i410: Variable: WixBundleOriginalSource = C:\Users\<username>\AppData\Local\Temp\4j4nhf3j.zb3\GatewayInstall.exe
[53E4:3268][2018-09-11T10:29:18]i410: Variable: WixBundleOriginalSourceFolder = C:\Users\<username>\AppData\Local\Temp\4j4nhf3j.zb3\
[53E4:3268][2018-09-11T10:29:18]i410: Variable: WixBundleProviderKey = {f73a836c-c235-4e38-b372-cf40f34892e2}
[53E4:3268][2018-09-11T10:29:18]i410: Variable: WixBundleRollbackLog_PersonalGatewayComponents.msi = C:\Users\<username>\AppData\Local\Temp\On-premises_data_gateway_(personal_mode)_20180911102852_000_PersonalGatewayComponents.msi_rollback.log
[53E4:3268][2018-09-11T10:29:18]i410: Variable: WixBundleTag =
[53E4:3268][2018-09-11T10:29:18]i410: Variable: WixBundleVersion = 14.16.6792.1
[53E4:3268][2018-09-11T10:29:18]i007: Exit code: 0x0, restarting: No

 

 

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors