Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

plugin registration assembly error

Posted on by 15

IMG_5F00_20200421_5F00_192050.jpg

  • Suggested answer
    Justinjose Profile Picture
    Justinjose 2,707 on at
    RE: plugin registration assembly error

    Hi Shaquib,

    Could you create new plugin just for testing purpose without any logic to make sure whether the issue with the plugin or not. You could create something like this

    using System;
    using System.ServiceModel;
    
    // Microsoft Dynamics CRM namespace(s)
    using Microsoft.Xrm.Sdk;
    using Microsoft.Xrm.Sdk.Query;
    
    namespace Microsoft.Crm.Sdk.Samples
    {
        public class CalculatePricePlugin : IPlugin
        {
            public void Execute(IServiceProvider serviceProvider)
            {
                //Extract the tracing service for use in debugging sandboxed plug-ins.
                ITracingService tracingService =
                    (ITracingService)serviceProvider.GetService(typeof(ITracingService));
                
                // Obtain the execution context from the service provider.
                IPluginExecutionContext context = (IPluginExecutionContext)
                    serviceProvider.GetService(typeof(IPluginExecutionContext));
                    
           }
                    
        } 
    }

    Thanks
    Justin Jose

  • Suggested answer
    Vijay Tailor Profile Picture
    Vijay Tailor 431 on at
    RE: plugin registration assembly error

    Hi Alam,

    Can you please elaborate on the issue or mention steps with screenshots.

    So it will help others to understand in right direction.

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