0
votes

I'm developing a custom plugin for CRM. When I deploy plugin to CRM on Virtual PC, I get the error below.

Error registering plugins and/or workflows. Legacy plugin steps are only supported in Pre-validation and Post-operation stages

How can I resolve this error ?

1
The error is when you register the step or when you upload the plug-in?Sxntk
Hi @Sxntk Thanks for your response, Plugin already registered on solution, when I deploy crmpackage, visual studio gives this error.Hüseyin A. Kargınoğlu
Error means you cannot register CRM 4.0 plugins in Pre-Operation (20) stage, only 10 (Pre-Validation) and 40 (Post-Operation) is allowed. You have an upgraded organization, I suspect ?Alex

1 Answers

1
votes

Like @Alex has said, it looks like you are using the CRM 4 sdk to develop your plugins. I would recommend using the CRM 2011 SDK in order to not have to rewrite your plugins once you upgrade to 2013 or above. Here's the link:

https://www.microsoft.com/en-us/download/details.aspx?id=24004