CRM 2013 Plugin issue RRS feed

  • Question

  • 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.


    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?


    Monday, February 23, 2015 10:31 AM


  • Hello,

    Yes. You can rebuild your code to send data synchronously in Async Plugin.

    Dynamics CRM MVP/ Technical Evangelist at SlickData LLC
    My blog

    Monday, February 23, 2015 12:23 PM