Hi Guys
PB2022R3 latest build Win10. I have a problem deploying a cloud application that has deployed happily before. I was only changing the shortcut name, i reverted it back and it still fails.
The error info is as follows:
Info: Updating file (mainsite\Pssupport_cloud_API\AppConfig\Applications.json).
Info: Updating file (mainsite\Pssupport_cloud_API\AppModels.dll).
1>MSDEPLOY : error Code: ERROR_FILE_IN_USE [C:\Users\dpeace\AppData\Local\Temp\pbappscache 22.0\ServerAPIs\ServerAPIs.csproj]
More Information: Web Deploy cannot modify the file 'AppModels.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: https://go.microsoft.com/fwlink/?LinkId=221672#ERROR_FILE_IN_USE.
1>MSDEPLOY : error count: 1. [C:\Users\dpeace\AppData\Local\Temp\pbappscache 22.0\ServerAPIs\ServerAPIs.csproj]
1>Done Building Project "C:\Users\dpeace\AppData\Local\Temp\pbappscache 22.0\ServerAPIs\ServerAPIs.csproj" (Publish target(s)) -- FAILED.
Build FAILED.
"C:\Users\dpeace\AppData\Local\Temp\pbappscache 22.0\ServerAPIs\ServerAPIs.csproj" (Publish target) (1) ->
(MSDeployPublish target) ->
MSDEPLOY : error Code: ERROR_FILE_IN_USE [C:\Users\dpeace\AppData\Local\Temp\pbappscache 22.0\ServerAPIs\ServerAPIs.csproj]
MSDEPLOY : error count: 1. [C:\Users\dpeace\AppData\Local\Temp\pbappscache 22.0\ServerAPIs\ServerAPIs.csproj]
0 Warning(s)
2 Error(s)
Time Elapsed 00:00:25.52
Failed to publish the installable cloud app.
---------- Finished Deploy of pssupport_cloud (16:22:41)
Error(s) occurred during the deployment. For more information, see above messages.
The temp folder C:\Users\dpeace\AppData\Local\Temp\pbappscache 22.0\ServerAPIs is deleted after the build fails, but I was able to see that it existed during the build process. I have rebooted the PC and tried the deploy again. I'm not sure what I can do to fix this..... ideas please?
Thanks
David
Thanks
even so, that seems odd to me. I can deploy to a running IIS server and even with users running the application it deploys (knocks them off the system).