Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6082019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:14:32+00:00 2026-05-23T11:14:32+00:00

Does anybody have any quick and clever ways to flip an MVC app running

  • 0

Does anybody have any quick and clever ways to flip an MVC app running on Windows Azure into a “maintenace mode”

I don’t have a huge need for this because I use the azure staging environment a lot but occasionally I do have the need to make sure there are no users in the production instance of the application (mainly database updates).

I’d like to be able to do this on the fly without uploading new code or swapping deployment slots. Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:14:32+00:00Added an answer on May 23, 2026 at 11:14 am

    The friendliest way to do it is on login. When a user authenticates, check a maintenance mode flag in the database and don’t let them log in. Let active users continue to use the application until they log out or their session times out. Keep an activity log so you can know when all users have expired.

    Of course this means it will take time from when you put the app into maintenance mode and when it is effectively ready, but it’s not nice to boot out an active user.

    If the usage pattern of your app makes it so this methodology will not ensure no activity in a reasonable time, you can add a timeout on top of this. Check the same maintenance flag for a request every so often. Doesn’t have to be every request but every five minutes or so. If necessary you can also cache the maintenance mode value locally for a reasonable period of time (a few minutes).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anybody have any success running clang static analyzer on Windows? I have successfully
does anybody have any experience writing up a offline data storage & access app
Does anybody have any experience/ knowledge in installing the aspImage.dll on a 64-bit Windows
Does anybody have any suggestions on how to improve the following statements: insert into
Does anybody have any clever solutions that they've used to turn on customErrors for
Does anybody have any experience with as3-spod? I downloaded the source code from github
does anybody have any idea what's does this mean: onLoad=MyOnLoad? thanks
Does anybody have any advice on working in a Date Driven Development environment? Essentially,
Does anybody have any experience with TFS no longer letting somebody queue a new
Does anybody have experience build app with PhoneGap's Build Service? I followed the steps

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.