How do you put web services into maintenance mode?
I've tried the app_offline.htm
, doesn't seem to work well for web services. Does work for web site though.
app_offline.htm
worked fine for web sites, but not for web service. When I called an web service function via code that's supposedly under maintenance (put the app_offline.htm
under the root directory of the IIS web service), I still got the proper response as usual.
Ideally I would like the web service that's under maintenance to return to me a message like "under maintenance".