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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

"Requested registry access is not allowed" - error while creating record in plugin CRM 2011

(0) ShareShare
ReportReport
Posted on by

Hi everyone, 

I have recently setup a testing environment from production.

Getting this error when a plugin tries to create a record for a different entity:

I have tried these fixes but no luck-:

  1. https://support.microsoft.com/en-us/kb/842795
  2. CRMAppPool user has full rights 

Error

---------------------------------------------------------------------------------------

Plugin Trace:


[ABC_PluginLibrary: ABC_Plugin.OnTaskCreate]
[28597119-b5de-e411-82ad-005056a87b1c: ABC_Plugin.OnTaskCreate: Create of task]


Error Message:

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Requested registry access is not allowed.Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ErrorCode>-2147220891</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic">
<KeyValuePairOfstringanyType>
<d2p1:key>OperationStatus</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:int">0</d2p1:value>
</KeyValuePairOfstringanyType>
</ErrorDetails>
<Message>Requested registry access is not allowed.</Message>
<Timestamp>2016-04-26T18:40:25.5985922Z</Timestamp>
<InnerFault>
<ErrorCode>-2147220891</ErrorCode>
<ErrorDetails xmlns:d3p1="schemas.datacontract.org/.../System.Collections.Generic">
<KeyValuePairOfstringanyType>
<d3p1:key>OperationStatus</d3p1:key>
<d3p1:value xmlns:d5p1="www.w3.org/.../XMLSchema" i:type="d5p1:int">0</d3p1:value>
</KeyValuePairOfstringanyType>
</ErrorDetails>
<Message>Requested registry access is not allowed.</Message>
<Timestamp>2016-04-26T18:40:25.5985922Z</Timestamp>
<InnerFault>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d4p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>System.Security.SecurityException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #2F7C4252</Message>
<Timestamp>2016-04-26T18:40:25.5985922Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<TraceText i:nil="true" />
</InnerFault>
<TraceText>
[ABC_PluginLibrary: ABC_Plugin.OnTaskCreate]
[28597119-b5de-e411-82ad-005056a87b1c: ABC_Plugin.OnTaskCreate: Create of task]

</TraceText>
</OrganizationServiceFault>
at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Create(Entity entity, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)
at Microsoft.Crm.Extensibility.InprocessServiceProxy.CreateCore(Entity entity)
at Microsoft.Crm.Workflow.Services.CreateActivityService.<>c__DisplayClass1.<CreateInternal>b__0(IOrganizationService sdkService)
at Microsoft.Crm.Workflow.Services.ActivityServiceBase.ExecuteInTransactedContext(ActivityDelegate activityDelegate)
at Microsoft.Crm.Workflow.Services.CreateActivityService.ExecuteInternal(ActivityContext executionContext, CreateEntity createEntity)
at Microsoft.Crm.Workflow.Services.CreateActivityService.Execute(ActivityContext executionContext, CreateEntity createEntity)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

*This post is locked for comments

I have the same question (0)
  • T1sh0 Profile Picture
    62 on at
    RE: "Requested registry access is not allowed" - error while creating record in plugin CRM 2011

    Hello Masood Akhtar,

    I'm having the above issue, and was wondering if you could give detailed steps on this fix, please.

    Thanks in advance,

    Kind regards

  • Verified answer
    Community Member Profile Picture
    on at
    RE: "Requested registry access is not allowed" - error while creating record in plugin CRM 2011

    i fixed the issue by applying below fix:

    Giving full permissions to Network Service and CRMAppPool identity account on - HKLM-Software-MS-MSCRM key worked fine.

  • Community Member Profile Picture
    on at
    RE: "Requested registry access is not allowed" - error while creating record in plugin CRM 2011

    Hi Pham Hong, no it's not in Sandbox mode.

  • nghieppham Profile Picture
    4,755 on at
    RE: "Requested registry access is not allowed" - error while creating record in plugin CRM 2011

    Hi Masood,

    Please check mode of your plugin, it should not in sandbox mode.

    Regards,

  • Community Member Profile Picture
    on at
    RE: "Requested registry access is not allowed" - error while creating record in plugin CRM 2011

    Thanks Nicolae, yes it has admin rights.

  • NicksTuk Profile Picture
    1,833 on at
    RE: "Requested registry access is not allowed" - error while creating record in plugin CRM 2011

    make sure the account used for the plugin has permissions to create a new task record.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#2
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans