locked
Plugin Debugging issue RRS feed

  • Question

  • I am trying to debug a plugin. I found a strange error and unable to figure out.

     public void Execute(IServiceProvider serviceProvider)
            {
                Entity entity = null;
                IPluginExecutionContext context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));

    code follows....

    }

    when i use "ADD Watch" for service provider and IPluginExecutionContext, system is giving the below errors.

    service provide : cannot obtain the value for local variable or argument beacuse not available at this instruction point...

    IpluginExecutionContext : CS0119 IpluginExecutionContext is a type, which is not valid at the given context.

    Can anyone help what went wrong? I am unable to find the issue. please help.

    Wednesday, December 9, 2015 5:19 PM