Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Jul 20, 2010 @ 08:40
    Sebastiaan Janssen
    0

    Package actions contrib won't change

    So I've downnloaded the latest source code of the package actions contrib project and made some changes to the httpHandler section. Currently, it only supports the older .net 2.0 way of adding handlers to the system.web/httpHandlers section, but I also need to be able to add a handler to the system.webServer/handlers section for compatibility with the .net 3.5/4.0 web.config.

    I built it, no errors, great. Then copied the PackageActionsContrib.dll to the bin folder of the website I'm using to create a new package. I create the new package, include my dll AND PackageActionsContrib.dll (I can see by the modified date that this is the version I've just built).

    Then I went to another site, that does not have the PackageActionsContrib.dll anywhere in it, install the package and.. nothing. Well, the OLD action is still performed, but my additions are ignored completely. Worse yet, I've also changed the old way of adding the handler, but it is also not adding my new property (I did this just to make sure the changes were doing something at least).

    Did a complete IISReset to make sure I didn't have anything cached. 

    What's going on?

     

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Jul 20, 2010 @ 11:59
    Stefan Kip
    1

    Some things you really have to make sure:

    • Open the PackageActionsContrib.dll with .NET reflector, so you're absolutely 100% certain that the code is updated in there ;-)
    • Right before your newly added code, add some logging so you can check if code is updated/there maybe is a problem with the code right after the logging code
    • Triple check if it's in the correct bin folder ( happened to me once ;-) )
  • Richard Soeteman 4047 posts 12900 karma points MVP 2x
    Jul 20, 2010 @ 16:03
    Richard Soeteman
    1

    HI Sebastiaan,

    Download the test tool from this page so you can debug your action.

    Cheers,

    Richard

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Jul 20, 2010 @ 17:11
    Sebastiaan Janssen
    0

    Thanks guys, thanks to Richard I now know that I absolutely have the correct DLL, I added an extra property to the action ("name") and it was filled in automatically when I chose the "Add Sample" button.

    And I found that I created a weird bug (that shouldn't be there), but have a workaround. Should be an easy fix, new package coming tonight!

Please Sign in or register to post replies

Write your reply to:

Draft