I have a site running on Azure.
When I publish from Visual Studio, I get an error message saying a file is in use.
If I then stop the site, and then publish again, and then start, everything is fine.
However, I would like to not be required to log into Azure and do this every time an update is made to the site.
Is there a way to do this?
This is the error message: Severity Code Description Project File Line Suppression State Error Web deployment task failed. (Web Deploy cannot modify the file 'GGL.OrderEntry.Data.dll' 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.) GGL.OrderEntry 0
The DLL is a project in the solution.