Hi CRM Team,
Need your help on the below issue.
I have registered a Plug-in on Create message. The plug-in will retrieve the data from Plug-in context and Pass it to WCF service asynchronously.
On Create, getting the below error from plugin.
“ValidateOpen – Encountered disposed CrmDbConnection when it should not be disposed”.
Found the root cause in the below article.
http://inogic.com/blog/2012/02/issue-with-plug-in-in-crm-2011/
As per this article, Class level variables should be declared in Method level instead. But since we are sending data to WCF method asynchronously we need the object to be posted to WCF in Class level. Can you please suggest some solution/work around
for this issue?
Thanks.