Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Customize Ribbon -CRM 2011 Visual Ribbon Editor

Posted on by Microsoft Employee

Hello,

I am getting the below error while trying to open any entity from "CRM 2011 Visual Ribbon Editor " tool. I can connect to my crm organization but i cannot open any entities. 

After checking the logs files I found that the issue is CRM is not able to access a registry but I could not identify it.

An idea about what is the issue ?

 

Exception Type: FaultException`1
Fault Action: schemas.microsoft.com/.../ExecuteOrganizationServiceFaultFault
Fault Code: Sender
Fault Action: schemas.microsoft.com/.../ExecuteOrganizationServiceFaultFault
Fault Code: Sender
Error Code: -2147220970
Error Message: An unexpected error occurred.
Error Trace:
Message: An unexpected error occurred.
Error Details: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: An unexpected error occurred. (Fault Detail is equal to Microsoft.Xrm.Sdk.OrganizationServiceFault).

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

Crm Exception: Message: An unexpected error occurred., ErrorCode: -2147220970, InnerException: System.TypeInitializationException: The type initializer for 'MS.Utility.EventTrace' threw an exception. ---> System.Security.SecurityException: Requested registry access is not allowed.
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(Stream stream, FileMode packageMode, FileAccess packageAccess, Boolean streaming)
at Microsoft.Crm.CrmZip..ctor()
at Microsoft.Crm.ObjectModel.RibbonCustomizationService.BuildRibbonXml(String[] tabIds, String entityLogicalName, ExecutionContext context)
at Microsoft.Crm.ObjectModel.RibbonCustomizationService.RetrieveEntityRibbon(String entityLogicalName, RibbonLocationFilters ribbonLocationFilter, ExecutionContext context)

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

*This post is locked for comments

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Customize Ribbon -CRM 2011 Visual Ribbon Editor

    Have you tried Ribbon Workbench as Ravi suggested?

    I think that would simplify your life.

    Hope this helps.

  • Verified answer
    LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Customize Ribbon -CRM 2011 Visual Ribbon Editor

    Hi ALSayed,

    Please refer to the following links.

    1. Similar issue : https://blogs.technet.microsoft.com/spsforum/2011/11/02/quick-solution-5-requested-registry-access-is-not-allowed

    2. Microsoft Support : https://support.microsoft.com/en-us/help/329291/prb-requested-registry-access-is-not-allowed-error-message-when-asp-ne

    Hope it helps.

    Best Regards

    Leo

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Customize Ribbon -CRM 2011 Visual Ribbon Editor

    Hi Ravi,

    I gets the same error when i try to import it.

    Regards

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Customize Ribbon -CRM 2011 Visual Ribbon Editor

    Hi Leo,

    I have CRM 2011 installed on Win server 2008.

    i Tried what do suggest, it still not working....

    i tried to export solution and i have got the below error which have resamblance of the previous one. It seems the poblem occurs when CRM tries to export the ribbon

    The Web Service plug-in failed in OrganizationId: 57f5576d-dc4a-e811-8ea8-000c2901e25e; SdkMessageProcessingStepId: 681f0f11-8e01-40a1-8d84-424242bb392c; EntityName: none; Stage: 30; MessageName: ExportSolution; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Crm.Extensibility.InternalOperationPlugin; Exception: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.

      at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)

      at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

      at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

      at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)

      at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IServiceProvider serviceProvider)

      at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)

      at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)

    Inner Exception: System.TypeInitializationException: The type initializer for 'MS.Utility.EventTrace' threw an exception.

      at MS.Utility.EventTrace.EasyTraceEvent(Keyword keywords, Event eventID)

      at System.IO.Packaging.Package.Open(Stream stream, FileMode packageMode, FileAccess packageAccess, Boolean streaming)

      at Microsoft.Crm.CrmZip..ctor()

      at Microsoft.Crm.Tools.ImportExportPublish.RootExportHandler.RunExport()

    Inner Exception: System.Security.SecurityException: Requested registry access is not allowed.

      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()

    .

    Regards

  • LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Customize Ribbon -CRM 2011 Visual Ribbon Editor

    Hi ALSayed,

    Can you kindly share what is the version of your CRM and your operating system?

    If you are using an on-premises version, you can try to give full permissions of CRM folder to Network Service and then open the tool on your server.

    Hope it helps.

    Best Regards

    Leo

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Customize Ribbon -CRM 2011 Visual Ribbon Editor

    Why don't you try ribbon workbench?

    www.develop1.net/.../ribbonworkbench.aspx

    Hope thi shelps.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Customize Ribbon -CRM 2011 Visual Ribbon Editor

    Hi Leo,

    I try it, the issue still presists. I even moved the tool to server...same result.

    Regards

  • LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Customize Ribbon -CRM 2011 Visual Ribbon Editor

    Hi ALSayed,

    It is a problem caused by system permissions.

    Please try to run this tool as administrator.

    Hope it helps

    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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans