locked
Plugin registration Problem Occuring RRS feed

  • Question

  • Hi,

    We have been working on Dynamics CRM 4.0 since one year, we created many plugins using CRM SDK, and everything was working greatly. Today we deployed CRM on our client Testing environment and we registered all plugins we need for the system. Any of those plugins is working and one undefined error is being generated in each entity we attached a plugin on.

    we tried to remove all the code from the plugin since we thought we have a Bug knowing that the same plugin is working fine on our dev environment. also the same error is being generated.

    the only difference between our DEV environment where the plugins are working and the client environment is that the CRM deployment manager user has a "manager" but in our Dev env the "Manager" field is empty. Can this be considered a problem ? if yes what should be the solution ?

     

    NB: i have removed all users who has managers and created a new user (system Admin) set it as deployment administrator (in deployment Manager) tried to attach Plugin using this new user, SAME Error generated!

    We are working with CRM Rollup 15 installed.

     

    Thanks

     


    GKSPLB
    Tuesday, May 24, 2011 8:15 AM

Answers

  • Hi GKSPLB,

    1. "the only difference between our DEV environment where the plugins are working and the client environment is that the CRM deployment manager user has a "manager" but in our Dev env the "Manager" field is empty. Can this be considered a problem ? if yes what should be the solution ?"

    if you are using the manager field in your plugin code only then there might be an issue there otherwise it has nothing to do with the error.

    2. if i understand correctly : there is a plugin that's working fine in your dev environment but giving error after deployment in production (for any entity it is attached to)

    in that case since you have successfully deployed the plugin so no issues in plugin registration ; i.e the issue is in the plugin code:

    now the things we need to check :

    a). check all hardcoded entries in your code like orgname or user name or any guid etc..

    b). are the images registered to use with your plugin code are correct ?

    c). are you refereing an attribute of your entity to use in plugin that is missing in production but available in production environment.

    if it does not help try enable tracing : How to enable tracing in Microsoft Dynamics CRM: http://support.microsoft.com/kb/907490

    and see the trace result : Try to use the Trace File Viewer built in to the stunnware product. - The full stunnware suite is a product for sale, but this feature happens to be available in free  Community Edition. http://stunnware.com/default.aspx?area=products&group=swtools4 

    also you can try to debug the plugin code: http://msdn.microsoft.com/en-us/library/cc151088.aspx

    hope this will help

     



    vishal swami

    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    http://msdynamics4you.blogspot.com
    Tuesday, May 24, 2011 8:57 AM