I have a web API that is hosted in Azure. Because of the fact that after 20 minutes of inactivity IIS goes to sleep, I also added a startup script that removes this timeout, so that IIS stays awake. As specified, this file should be saved as UTF-8 without signature, otherwise it is not run on Azure during deployment.
This all works fine the first time.
The problem is that every time we close Visual Studio and reopen it, it seems to forget that the startup file is saved as 'UTF-8 without signature'; it always reverts it to 'UTF-8 with signature'.
I have tried is as described here (advanced save options) and also the fix file encoding extension, but nothing helps. The file is always back to 'UTF-8 with signature'. My collegue has exact the same issue.
As a result, before each deploy we first save the file again as 'UTF-8 without signature' explicitely, which is annoying.
In case it's relevant, our source code is hosted in Visual Studio Online.
Anyone has another idea we can try?
EDIT: just stumbled on Azure Web Role "warm up" strategies, maybe I can try one of these alternatives.