I have created a ASP.NET Core Web Application (.Net Framework) in Visual Studio. I publish the project to Azure with Web Deploy using publishing profile. It throws error as mentioned below:
"Severity Code Description Project File Line Suppression State
Error Web deployment task failed. (Web Deploy cannot modify the file '.exe' on the destination because it is locked by an external process.
In order to allow the publish operation to succeed, you may need to either restart your application to release the lock,
or use the AppOffline rule handler for .Net applications on your next publish attempt.
Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_FILE_IN_USE.)"
What is the cause of this type of issue?
I tried "MSDEPLOY_RENAME_LOCKED_FILES=1" as well as "AppOffline rule handler for .Net applications ", but its not working. Please help to get rid of such type of bug.