user1603734
user1603734

Reputation: 1131

CRM 2011 Plugins not firing

I have two plugins (one a create pre-handler, the other an update post-handler). I built a plugins DLL from these two files using an snk, moved the dll onto the server bin and registered the two plugins with the registration tool and reset services. For some reason, the plugins are not firing...just to make sure it wasn't erroring out on any of my plugin code, I put the following line as the first piece of code in both plugins:

throw new InvalidPluginExecutionException("1");

Still, neither plugin fires and the create and update simply go through. Does anyone know if I'm missing anything here...

Upvotes: 2

Views: 3872

Answers (2)

Greg Oks
Greg Oks

Reputation: 2730

Did you register them as sync or async? If async then check if your crm async service is working. Try registering them as sync and see when you press the save on your entity if it tskes longer, that might mean that the plugin is working.. Also please post print screen of the plugin registration

Upvotes: 3

Col
Col

Reputation: 656

You could use CRMDiagTool to enable a trace on the CRM server to see if your plugins are generating any exceptions:

CRMDiagTool

On the Platform Tracing tab, select Application and Exception categories, click Enable Trace, perform the actions in CRM that you'd expect to trigger the plugin. Then click to Disable Trace, click Open Trace Directory and open the trace files generated. You may see an exception or some clue in the file as to the problem.

Upvotes: 3

Related Questions