Menu

post-commit hook not recognized

Help
Ken
2009-03-10
2013-04-26
  • Ken

    Ken - 2009-03-10

    I downloaded the sources and built the executables and plugins. I did not change any code, just configured the App.config file. I put all the binaries in the hook directory of the repository. I used the included sample batch file for the postcommitemailhook but when it runs it fails to find a good plugin. It finds the assembly and postcommitemailhook but it fails in this call: if (pluginType.IsAssignableFrom(type))... But types are postcommitemailhook and postcommithook so I don't see why it fails?

     
  • Anonymous

    Anonymous - 2011-08-18

    2 years later… I have exactly the same problem.
    I got it to work for a while by moving the plugin dll into another folder and adjusting the config file accordingly.
    Now, after moving the entire solution, and creating a post-build tasks which copies the dll, it fails again.
    pluginType.IsAssignableFrom(type)  returns false when it clearly shouldn't.
    I'm stuck!

     

Log in to post a comment.

MongoDB Logo MongoDB