Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Possible to set Preload Enabled to true in IIS:EnSureSite?

    Scheduled Pinned Locked Moved Support
    4 Posts 3 Posters 18 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      Justinvolved
      last edited by

      Hi,

      Is there any way I can make sure the setting "Preload Enabled" is set to true when I IIS::Ensure-Site

      I would like my iis apps to be preloaded and stay up always...

      https://i0.wp.com/www.taithienbo.com/wp-content/uploads/screenshots/IIS_Application_Initialization/Screen-Shot-2018-10-06-at-4.22.39-PM-2.png?w=437&ssl=1

      Thanks,
      Justin

      atrippA 1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer @Justinvolved
        last edited by

        Hi @Justinvolved

        It's been a while, but I believe we investigated this a little while back, but discovered it wasn't possible/feasible to do with the API we were using. That would have been in the .NET4+ days, not .NET6+, so it may have changed.

        I don't remember

        Here's the code we use to bind the Otter configuration to Microsoft.Web.Administration libraries: https://github.com/Inedo/inedox-windows/blob/master/Windows/InedoExtension/Configurations/IIS/IisSiteConfiguration.cs

        It might be trivial now, and we'd be happy to accept a pull request if you're able to figure/try it out!

        Cheers,
        Alana

        1 Reply Last reply Reply Quote 0
        • J Offline
          Justinvolved
          last edited by

          @Justinvolved said in Possible to set Preload Enabled to true in IIS:EnSureSite?:

          Preload Enabled

          Hey Alana,

          I will definitly give it a go. From what I can see in the Microsoft.Web.Administration docs it should be possbile.

          To prevent me creating a fully untested PR, could you help me get started with setting up a dev environment for this? Then I can at least run a couple of tests in my own environment before submitting, but I'm not sure where to start...

          Thanks,

          Justin

          1 Reply Last reply Reply Quote 0
          • rhessingerR Offline
            rhessinger inedo-engineer
            last edited by

            Hi @Justinvolved,

            The easiest way to setup a test environment for this would be to setup an instance of Otter (free edition is fine). Then once you have checked out https://github.com/Inedo/inedox-windows and made your changes, you can package the extension using the Inedo Extension Packager. This is available as a .NET tool. You can then navigate to the extensions page and upload the extension file to Otter. You may need to modify the AssemblyVersion in AssemblyInfo.cs to a version newer than the installed version to get it to pick it up as the lastest. Alternatively, you can copy that extension file to the Extensions.ExtensionsPath and restart Otter to have it pick up as well.

            The command I typically run to package the extension is:

            inedoxpack pack InedoExtension Windows.upack -o --build=Debug
            

            I run that command from the the solution file's directory.

            Hope this helps! If you have any questions, please let me know.

            Thanks,
            Rich

            Products Engineer, Inedo

            1 Reply Last reply Reply Quote 1

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post
            Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation