I have a web app on Azure that hosts a web API. I updated my code on Visual Studio then push the updates to the web application on Azure. It says that it is getting successfully updated. I tried publishing via git and via ftp it is getting successfully updated on the cloud but still returns the old version on get request.
ASP.Net Web API
and published to Azure.Initial Output :
Publish
window, under Settings
section click on Show all settings
.File Publish Options
, enable the Remove additional files at destination
option.This ensures that all the old, cached data gets deleted and updates with the latest code changes.
Re-deploy the app and restart in Azure portal.
New Output :
You can even deploy the App using Import Profile
.
Create an Azure App service in Azure portal,click on Download publish profile
.
Enable the option of Remove additional files at destination
here as well.
In VS, Import the downloaded publish profile and continue the steps to deploy to Azure.