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)

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

(0) ShareShare
ReportReport
Posted on by 192

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

I have the same question (0)
  • ashlega Profile Picture
    34,477 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..

  • Brekh Profile Picture
    192 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

  • Brekh Profile Picture
    192 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.

  • Verified answer
    ScottDurow Profile Picture
    21 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
    192 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.

  • ScottDurow Profile Picture
    21 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
    192 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

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
UllrSki Profile Picture

UllrSki 2

#3
SC-08081331-0 Profile Picture

SC-08081331-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans