Copied to clipboard

Flag this post as spam?

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


  • atze187 160 posts 215 karma points
    Jan 06, 2010 @ 21:42
    atze187
    0

    Changing urlrewrite settings on package install?

    I have a package that comes with an http handler to handle personalized download (/download/file/{some-guid}) that our sales team can use to provide our clients with downloads. Therefore I need to add this directory to the umbracoReservedUrls entry in the appSettings-section of the web.config file. Is there any api way to do it or should I stick to the ASP.NET configuration API to carefully modify the web.config file?

    André

  • Sebastiaan Janssen 4899 posts 14655 karma points MVP admin hq
    Jan 06, 2010 @ 22:56
    Sebastiaan Janssen
    0

    I don't think you can do this at the moment, but you should have a look at the package actions contrib project, you could look at the source code, add your action and contribute to it. :)

  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    Jan 07, 2010 @ 01:55
    Dirk De Grave
    0

    atze187, there's a package action to add a appSettings value, but not to update an existing. Grad a copy of the code and add this action. Submit the patch and it'll be included in a next version.

     

    Cheers,

    /Dirk

  • Richard Soeteman 3875 posts 12037 karma points MVP
    Jan 07, 2010 @ 06:22
    Richard Soeteman
    0

    Hi an AddHttpHandler action is allready added to the contrib project. Checkout the documentation

    Cheers,

    Richard 

  • atze187 160 posts 215 karma points
    Jan 07, 2010 @ 08:47
    atze187
    0

    That's been very useful, thank you all, even though only one of you can get the solution credits ;)

    André

  • 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