Hi Folks,
Last few weeks was very busy for me, I missed interacting with the community.
Here I would like to share one tip which can greatly help your debugging…
Just to give a little background, I was working with the Plugins for Dynamics 365 recently where I was working with API, the Plugin seem to work fine when debugged using Profiler, I tested the piece of the Plugin Code in Console, it worked either, but Plugin is not working when the respective action which triggers the Plugin is being fired. I scratched my head, what is the problem…
Just then, I tried using the below block of code, replaced the catch block of Plugin Code with below code.
Soon, I observed from the detailed error message above function posted, it is failing because of version problem of the referenced DLL and current DLL version was not supported with my assembly.
Soon I was able to reference my Plugin with correct DLL version which fixed the issue. No further debugging was needed.
Hope this helps…
Cheers,
PMDY
