Summary
When trying to use the Business Adapter Studio Encrypt Connection Information option in a business adapter and save the file, the following error is displayed:
The type initializer for 'Flexera.BusinessImport.BusinessImporterCryptographer' threw an exception
A similar error is displayed when invoking the MGSBI.exe command line tool using the /Encrypt or /EncryptValue option.
Cause
The Business Adapter Studio and MGSBI.exe tool attempts to create an encryption key in the Windows registry under HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ManageSoft Corp\ManageSoft when the encrypting connection information.
This error will be displayed if the Studio or MGSBI.exe is run by an unprivileged user who does not have rights to write to this registry area.
Workaround
Run the Business Adapter Studio or MGSBI.exe with local administrator rights.
Additional details
A stack trace similar to the following may be shown when inspecting debugging information associated with the error when this issue occurs:
System.TypeInitializationException: The type initializer for 'Flexera.BusinessImport.BusinessImporterCryptographer' threw an exception. ---> System.UnauthorizedAccessException: Access to the registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\ManageSoft Corp\ManageSoft' is denied.
at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
at Microsoft.Win32.RegistryKey.CreateSubKeyInternal(String subkey, RegistryKeyPermissionCheck permissionCheck, Object registrySecurityObj, RegistryOptions registryOptions)
at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey, RegistryKeyPermissionCheck permissionCheck)
at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey)
at Flexera.BusinessImport.BusinessImporterCryptographer.DeserializeEncryptionKey()
at Flexera.BusinessImport.BusinessImporterCryptographer..cctor()
--- End of inner exception stack trace ---
at Flexera.BusinessImport.BusinessImporterCryptographer..ctor()
at Flexera.BusinessImport.CryptographerSelector.GetCryptoScheme(Int32 schemeID)
at Flexera.BusinessImport.CryptographerSelector.GetCryptoScheme(String scheme)
at Flexera.BusinessImport.ManageSoftImport.get_ConnectionString()
[...]
Also see the following article which describes a similar (but slightly different) error message and scenario: Known Issue: Business Adapter Studio or MGSBI.exe fails to open adapter files if encryption details in MGSBI registry entry cannot be processed: "The type initializer for 'Flexera.BusinessImport.CryptographerSelector' threw an exception" (IOK-1009299)
Fix status
There are no plans to address this issue.
Other information
Affected components: Business adapters
Master issue ID: IOJ-1720238
Also known as: FNMS-21170
Related Articles
Business Adapter Studio or MGSBI.exe fails to encrypt source connection details with error when running without administra… 4Number of Views Business Adapter Studio or MGSBI.exe fails to open adapter files if encryption details in MGSBI registry entry cannot be p… 4Number of Views Known Issue: Business Adapter Studio or MGSBI.exe fails to open adapter files if encryption details in MGSBI registry entr… 47Number of Views Enabling logging on Flexera Business Adapter Studio 36Number of Views Business Adapter fails with error when trying to setting custom metric entitlement consumption: The multi-part identifier … 9Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago