I suggest you ...

EnableMSDeployAppOffline - AppOfflineTemplate

For WebDeploy you can specify <EnableMSDeployAppOffline> in the .pubxml file but this will generate a default app_offline.htm file that you cannot modify. Just provide an option for a template like <AppOfflineTemplate>

69 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Ingo shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →
    under review  ·  Sayed Ibrahim Hashimi responded  · 

    Thanks for the suggestion, I’m looking into this. The thought that I have is to do this convention based. So if you have a file named app_offline-template.htm then we use that file for app_offline.htm. Please let me know if that design doesn’t work for you.

    4 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • Ken Kick commented  ·   ·  Flag as inappropriate

        Anything more on this? After searching all day, I found your 2012 comment in the IIS forum that this was removed due to a security issue, but that you guys would work to put back in. Now 4 years later...??

      • Anonymous commented  ·   ·  Flag as inappropriate

        Maybe convention by default and this could override. But either way this is a long time missing from VS.

      • Ingo commented  ·   ·  Flag as inappropriate

        If this would work in VS2012 Publish Wizard (WebDeploy) this would be a great solution.

      Feedback and Knowledge Base