Hi All,
I highly appreciate any idea related to importing Self-hosted portal, MicrosoftDynamics365PortalsSolutions, (https://www.microsoft.com/en-us/download/details.aspx?id=55789) on Dynamics (9.0.12.4) on prem. Import, i.e. .\Import.ps1, keeps failing with the following trace:
“
Inner Exception Level 1 :
==OrganizationServiceFault Info=======================================================================================
Error : System.TypeInitializationException: The type initializer for 'MS.Utility.EventTrace' threw an exception. ---> System.Security.SecurityException: Requested registry access is not allowed.
at System.ThrowHelper.ThrowSecurityException(ExceptionResource resource)
at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
at Microsoft.Win32.Registry.GetValue(String keyName, String valueName, Object defaultValue)
at MS.Utility.EventTrace.IsClassicETWRegistryEnabled()
at MS.Utility.EventTrace..cctor()
--- End of inner exception stack trace ---
at MS.Utility.EventTrace.EasyTraceEvent(Keyword keywords, Event eventID)
at System.IO.Packaging.Package.Open(String path, FileMode packageMode, FileAccess packageAccess, FileShare packageShare, Boolean streaming)
at Microsoft.Crm.CrmUnzip..ctor(String fileName)
at Microsoft.Crm.Tools.ImportExportPublish.RootImportHandler.ExtractZipDataFromCustomizationFile(CrmTemporaryFile customizationFile)
at Microsoft.Crm.Tools.ImportExportPublish.RootImportHandler.ExtractFromCompressedFile(Byte[] compressedCustomizationFile)
at Microsoft.Crm.Tools.ImportExportPublish.RootImportHandler..ctor(ImportXml parent, Boolean publishWorkflows, Boolean holdingSolution, Byte[] compressedCustomizationFile, Boolean setup, Version existingDatabaseVersion, ExecutionContext context, Boolean skipNewDbChanges)
at Microsoft.Crm.Tools.ImportExportPublish.ImportXml..ctor(Boolean overwriteUnmanagedCustomizations, Boolean publishWorkflows, Boolean holdingSolution, Byte[] compressedCustomizationFile, Guid importJobId, Boolean convertToManaged, Boolean skipIntermediateImportJobUpdate, ExecutionContext context, Boolean skipNewDbChanges)
at Microsoft.Crm.WebServices.ImportXmlService.ImportSolutionSkipCapable(Boolean overwriteUnmanagedCustomizations, Boolean publishWorkflows, Byte[] customizationFile, Guid importJobId, Boolean convertToManaged, Boolean skipProductUpdateDependencies, Boolean holdingSolution, ExecutionContext context): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #831903E5
Time : 2/16/2020 10:33:03 PM
ErrorCode : -2147220970
Date : 2/16/2020
Time : 2:33:03 PM
Trace : Not Provided
======================================================================================================================
Inner Exception Level 2 :
==OrganizationServiceFault Info=======================================================================================
Error : System.Security.SecurityException: Requested registry access is not allowed.
at System.ThrowHelper.ThrowSecurityException(ExceptionResource resource)
at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
at Microsoft.Win32.Registry.GetValue(String keyName, String valueName, Object defaultValue)
at MS.Utility.EventTrace.IsClassicETWRegistryEnabled()
at MS.Utility.EventTrace..cctor()
The Zone of the assembly that failed was:
MyComputer: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #628B3F88
Time : 2/16/2020 10:33:03 PM
ErrorCode : -2147220970
Date : 2/16/2020
Time : 2:33:03 PM
Trace : Not Provided
“
My environment – Windows 2019. Application pools (CRMAppPool and CrmDeploymentServiceAppPool) are running under domain accounts with local admin privileges. I logged as a domain admin, Poweshell is run as Administrator. WWW service runs as Local Account.
Please let me know what Requested registry access import is trying to access and under what account.
Many thanks in advance!
Alex