Copied to clipboard

Flag this post as spam?

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


  • Ivan 165 posts 542 karma points
    Jun 06, 2013 @ 15:00
    Ivan
    0

    Package action: How to add handler to web.config?

    HI guys.

    When I'm installing my package, I would like web.config to be changed according to below:

    <handlers>

    .... list of defaut umbraco handlers

    <add name="myhanlder.xml" path=".xml" verb="*" type="mytype" />

    </handlers>

     

    Basically I need to add my handler at the bottom of <handlers> node. How do I do that?

  • Dave Woestenborghs 3325 posts 11170 karma points MVP 5x admin c-trib
    Jun 07, 2013 @ 08:04
    Dave Woestenborghs
    0

    Here you can find the documentation for package actions. There is a section on how to add handlers.

    http://our.umbraco.org/wiki/how-tos/packages-and-projects/package-action-samples

     

    Dave

  • Ivan 165 posts 542 karma points
    Jun 07, 2013 @ 13:18
    Ivan
    0

    Hi Dave.

    It seems it affects httpHandlers section, like this:

    <httpHandlers>

    <add ....

    </httpHandlers>

     

    Whereas I need handlers section, like this:

    <handlers>

    <add ...

    </handlers>

  • Ivan 165 posts 542 karma points
    Jun 07, 2013 @ 13:18
    Ivan
    0

    Any other ideas?

  • Richard Soeteman 3875 posts 12037 karma points MVP
    Jun 07, 2013 @ 13:21
    Richard Soeteman
    100

    HI Ivan

    You need to use this DLL http://our.umbraco.org/projects/backoffice-extensions/package-actions-contrib and if you are running on IIS7 it should add to handlers instead of httpHandlers. IIS6 will install into HTTPHandlers

    Hope this helps,

    Richard

  • Ivan 165 posts 542 karma points
    Jun 14, 2013 @ 15:20
    Ivan
    0

    Hi Richard.

    Thanks. I think this should be it.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies