Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

After Customising button on Custom Entity using RibbonWorkbench solution, publishing fails

Posted on by 190

Hi,

I am trying to Hide Activate button on a Custom Entity using Ribbon Workbench following the below article.

https://us.hitachi-solutions.com/blog/managing-activatedeactivate-permissions-of-crm-entities/

This worked perfectly fine for OOTB entity but, when I try to do configure the same on a different CustomEntity, I get the below error. I did try to re-install the RibbonWorkbench solution but no luck.

RBW:3.0.25,CRM:8.2.1.207
System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.IsolatedStorageFilePermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
at System.Security.CodeAccessPermission.Demand()
at System.IO.IsolatedStorage.IsolatedStorage.DemandPermission(IsolatedStorageScope scope)
at System.IO.IsolatedStorage.IsolatedStorage._InitStore(IsolatedStorageScope scope, Evidence domainEv, Type domainEvidenceType, Evidence assemEv, Type assemblyEvidenceType, Evidence appEv, Type appEvidenceType)
at System.IO.IsolatedStorage.IsolatedStorage.InitStore(IsolatedStorageScope scope, Type domainEvidenceType, Type assemblyEvidenceType)
at System.IO.IsolatedStorage.IsolatedStorageFile.GetStore(IsolatedStorageScope scope, Type domainEvidenceType, Type assemblyEvidenceType)
at MS.Internal.IO.Packaging.PackagingUtilities.GetDefaultIsolatedStorageFile()
at MS.Internal.IO.Packaging.PackagingUtilities.CreateUserScopedIsolatedStorageFileStreamWithRandomName(Int32 retryCount, String& fileName)
at MS.Internal.IO.Packaging.SparseMemoryStream.EnsureIsolatedStoreStream()
at MS.Internal.IO.Packaging.SparseMemoryStream.SwitchModeIfNecessary()
at MS.Internal.IO.Packaging.CompressEmulationStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at MS.Internal.IO.Packaging.CompressStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at MS.Internal.IO.Zip.ProgressiveCrcCalculatingStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at MS.Internal.IO.Zip.ZipIOModeEnforcingStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
at System.IO.StreamWriter.Write(String value)
at Develop1.Xrm.Silverlight.Ribbon.PublishSolutionController.Zip(Byte[] buffer)
at Develop1.Xrm.Silverlight.Ribbon.PublishSolutionController.AmmendAndPublish(Byte[] downloadedSolution, XDocument customisationsXml)
at Develop1.Xrm.Silverlight.Ribbon.DownloadSolutionController.OnDownloadComplete()
at Develop1.Xrm.Silverlight.Ribbon.DownloadSolutionController.OnExportedSolutionComplete(IAsyncResult asyncResult)
at SyncOrganizationService.BeginExecute(OrganizationRequest request, AsyncCallback callback, Object asyncState)
at RWB2016.Plugins.RibbonCustomisationsPlugin.PublishSolution(LocalPluginContext localContext, ITracingService trace, String data)
at SparkleXrm.Plugins.Plugin.Exe

Any thoughts what could be going wrong. 

Thanks In Advance

Rekha

*This post is locked for comments

  • Brekh Profile Picture
    Brekh 190 on at
    RE: After Customising button on Custom Entity using RibbonWorkbench solution, publishing fails

    Nope. I don't think it said the count of entities like 5 or anything. But the warning did suggest to reduce the number of entities if it takes too long for loading.

    Ribbon Workbench 2016 and CRM Online are the versions I was using, so not sure if that was the issue of not seeing the warning. Glad to know that was the cause. Thanks again so much.

    RWB-warning.JPG

  • ScottDurow Profile Picture
    ScottDurow 50,177 on at
    RE: After Customising button on Custom Entity using RibbonWorkbench solution, publishing fails

    When you load a solution there should have been a warning saying that the solution should contain 5 entities or less and no other components? Did the warning not popup?

  • Brekh Profile Picture
    Brekh 190 on at
    RE: After Customising button on Custom Entity using RibbonWorkbench solution, publishing fails

    Scott - Thanks so much for looking into this and the advice. We have Dynamics 365 Online instance. I tried creating a new solution adding just that custom entity where I wanted to do customizations and it worked fine now. Believe it was the Solution size all along that was causing the problem, but looking at the error have been thinking something to do with Authentication process.

    Is there any limitation on the Solution size or suggested guidelines that I can refer for future references. Thanks again.

  • Verified answer
    ScottDurow Profile Picture
    ScottDurow 50,177 on at
    RE: After Customising button on Custom Entity using RibbonWorkbench solution, publishing fails

    Hi - I've not seen that paricular issue before.

    Are you runing on prem or online?

    It could be that your server is running low on memory or you are loading a solution that is too big.

    Try and create a solution with just one entity in it and load that into the Ribbon Workbench.

    Hope this helps

  • Brekh Profile Picture
    Brekh 190 on at
    RE: After Customising button on Custom Entity using RibbonWorkbench solution, publishing fails

    Can someone advice what could be going wrong here. I want to know if I am missing something from my configurations or is it the RibbonWorkbench problem.

    I have not heard back anything from the RWB Support team yet and looking out for a ways to address this.

  • Brekh Profile Picture
    Brekh 190 on at
    RE: After Customising button on Custom Entity using RibbonWorkbench solution, publishing fails

    Thanks Alex for the reply. I was using CRM version of it. However tried a while ago with XRMToolBox, but did run into a different error with Timeout exception. I have sent out the error details to their Support and waiting to see if they come up with any suggestion.

    Regards

    Rekha

  • ashlega Profile Picture
    ashlega 34,475 on at
    RE: After Customising button on Custom Entity using RibbonWorkbench solution, publishing fails

    Just curious if you are using a "CRM" version of if it's an XrmToolBox version? Maybe try the other one?

    Other than that.. You might want to take this directly to Scott Durow(although, he may show up here as well):

    ribbonworkbench.uservoice.com

    There is "contact support" link there..

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans