PluginContext null after calling Execute method

Mar 12, 2013 at 6:35 PM
Hi All - I have tried to use this. However, once I have run my plugin Execute method by passing in MyServiceProvider the PluginContext is null when it returns. Therefore I cannot see what had happened during my plugin to be able to the test it. Code as below! Please help!

MyServiceProvider sp = new MyServiceProvider("username", "password", "http://crmserver/crmorg/XRMServices/2011/Organization.svc", @"C:\TFS\CrmCIUnitTests\SerializedFiles\account-Create-001.xml");
        PostAccountCreate plugin = new PostAccountCreate();
        var pluginExecutionContext = plugin.PluginContext.PluginExecutionContext;
plugin.PluginContext is null on the last line above.
Mar 17, 2013 at 7:05 AM
Edited Mar 17, 2013 at 7:10 AM
Can you do a quick watch on the sp object ? Did the plugin context de serialize ?
It would be nice if you can attach the xml file here.