locked
unregister a plug in RRS feed

  • Question

  • hi

    i am using mscrm 4.0 and .net 3.5.

    i have written a plugin, and have succesfully registered it using the "Plugin Registration Tool" - (and chose deploy to database), however when i unregister the plugin using the tool, then make some changes to the plugin, reregister it - the new changes have not been deployed.

    I know this as i am still getting the same error message. 

    Also when i renamed my plugin assembly and registered it, the new changes were deployed.

     

    So my question is - how do you fully remove all references to a plugin.

     

    thanks very much

     

    Saturday, March 5, 2011 4:23 PM

Answers

  • Try an IISReset if you have trouble re-registering a plugin - This helps especially if iis hasn't refreshed its cache/


    Scott Sewell, CustomerEffective | http:\\blog.CustomerEffective.com | Twitter:@ScottSewell
    Sunday, March 6, 2011 7:18 AM
    Moderator
  • hi thanks,

    it was quite a strange one.  i tried the iss reset, and the plugin reg tools refresh command, but if the plugin was named the same, the new version didnt take.

    what it turned out to be in the end, was that i had to increment to version number of the dll each time i made a change.  Then i could keep the same name, and the new functionality would become available.

     so i have marked this as my own answer, if that is ok?

    i think the steps are.

    1. make the code change

    2. increment the version number in assemblyinfo.cs

    3. unregister the old plugin

    4. refresh on the plugin reg tool and reset iis

    5. register the new version

    6. repeat step 4.

     

     

    • Marked as answer by MrKevorkian Wednesday, March 16, 2011 5:11 PM
    Wednesday, March 16, 2011 5:10 PM

All replies

  • Try an IISReset if you have trouble re-registering a plugin - This helps especially if iis hasn't refreshed its cache/


    Scott Sewell, CustomerEffective | http:\\blog.CustomerEffective.com | Twitter:@ScottSewell
    Sunday, March 6, 2011 7:18 AM
    Moderator
  • Apart from Scott's suggestion, also try debugging plug in to see if it is getting the latest code or not.. using following check list.

    http://mayankp.wordpress.com/2010/05/04/crm-plug-in-custom-workflow-debugging-check-list/

     


    MayankP
    My Blog
    Follow Me on Twitter
    Tuesday, March 8, 2011 11:49 AM
    Answerer
  • hi thanks,

    it was quite a strange one.  i tried the iss reset, and the plugin reg tools refresh command, but if the plugin was named the same, the new version didnt take.

    what it turned out to be in the end, was that i had to increment to version number of the dll each time i made a change.  Then i could keep the same name, and the new functionality would become available.

     so i have marked this as my own answer, if that is ok?

    i think the steps are.

    1. make the code change

    2. increment the version number in assemblyinfo.cs

    3. unregister the old plugin

    4. refresh on the plugin reg tool and reset iis

    5. register the new version

    6. repeat step 4.

     

     

    • Marked as answer by MrKevorkian Wednesday, March 16, 2011 5:11 PM
    Wednesday, March 16, 2011 5:10 PM