Skip to main content

Notifications

Announcements

No record found.

Customer Service forum
Under review by Community Managers

Under review

Thank you for your post! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Self-hosted CRM portal – Import fails with “Requested registry access is not allowed.”

Posted on by 5

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

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans