Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Unanswered

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

  • LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Self-hosted CRM portal – Import fails with “Requested registry access is not allowed.

    Hi Alex,

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

    mbs.microsoft.com/.../CRMSupport

    Best Regards,

    Leo

  • Dnepr83 Profile Picture
    Dnepr83 5 on at
    RE: Self-hosted CRM portal – Import fails with “Requested registry access is not allowed.

    Leo,

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

    Thank you,

    Alex

  • LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Self-hosted CRM portal – Import fails with “Requested registry access is not allowed.

    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
    Dnepr83 5 on at
    RE: Self-hosted CRM portal – Import fails with “Requested registry access is not allowed.

    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
    LeoAlt 16,329 on at
    RE: Self-hosted CRM portal – Import fails with “Requested registry access is not allowed.

    Hi partner,

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

    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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

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