我正在尝试将我的应用部署到Azure WebApp插槽,但它似乎已尝试更新的文件(Microsoft.Data.Edm.dll)已锁定,即使我手动停止了WebApp。部署我的应用程序时出现以下错误。
Web deployment task failed. (Web Deploy cannot modify the file 'Microsoft.Data.Edm.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.)
我尝试了从Visual Studio进行VSTS Web部署任务和手动部署,它返回了相同的错误消息。我尝试重新启动WebApp,设置COR_ENABLE_PROFILING = 0然后再设置1,但同样的错误。我没有尝试的最后一招是删除WebApp并重新创建..但我想知道在我做这个绝望措施之前是否还有其他建议。
先谢谢你。