web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Unanswered

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

(0) ShareShare
ReportReport
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

I have the same question (0)
  • LeoAlt Profile Picture
    16,331 Moderator on at

    Hi partner,

    Please raise a ticket to Microsoft Support Team and let the engineers help you at the server side.

    Best Regards,

    Leo

  • Dnepr83 Profile Picture
    5 on at

    Hi Leo,

    I appreciate your suggestion. Please let me know the process for raising a ticket to Microsoft Support Team. Note that we have MPN.

    Huge thanks,

    Alex

  • LeoAlt Profile Picture
    16,331 Moderator on at

    Hi Alex,

    Thanks for the notification.

    If your instance is deployed by Microsoft partner, you could ask them for help.

    If you want to contact with Microsoft directly, please go to power platform admin center and follow the below steps.

    pastedimage1581989972863v1.png

    https://mbs.microsoft.com/customersource/northamerica/CRM/support/support-lifecycle/CRMSupport

    Best Regards,

    Leo

  • Dnepr83 Profile Picture
    5 on at

    Leo,

    Wonder if MS provides support for on-prem Dynamics CE V9.

    Thank you,

    Alex

  • LeoAlt Profile Picture
    16,331 Moderator on at

    Hi Alex,

    Yes, about how to ask support for on-premise, please refer to the following link.

    mbs.microsoft.com/.../CRMSupport

    Best Regards,

    Leo

Under review

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

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
11manish Profile Picture

11manish 35

#1
Jimmy Passeti Profile Picture

Jimmy Passeti 35 Most Valuable Professional

#3
ManoVerse Profile Picture

ManoVerse 32 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans