I\'m running into the following error when trying to deploy an azure website via TFS continuous deployment.
I\'m using the TfvcContinousDeploymentTemplate.12.xaml bu
You ran into a limitation of Azure and .NET
Recommended is restarting your application. This can be done by changing an environment variable which in turn forces iis to restart.
For example: In the azure dashboard:
Set COR_ENABLE_PROFILING = 0
then deploy and then again
Set COR_ENABLE_PROFILING = 1
You can find a description of this problem here
If you want to automate stopping and starting the Azure App Service before and after the deployment, then if you are using VSTS, this task is now available out of the box (if you are using TFS, please find the tip with a market place task in one of the comments)
To leverage these tasks:
After configuring those two additional tasks, it was working fine for me.
(... by the way, VSTS Build and CI now also supports ASP.NET CORE builds made with VS2017 by selecting Agent "HOST VS 2017")
I know this is an old topic. But i had this problem my selve and solved it in Azure.
Add MSDEPLOY_RENAME_LOCKED_FILES=1 to your settings in Azure.
If there is any automated option to do the below 3 steps, that should work.