1. David Peace (Powersoft)
  2. PowerServer
  3. Tuesday, 5 November 2024 16:31 PM UTC

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

Accepted Answer
mike S Accepted Answer Pending Moderation
  1. Tuesday, 5 November 2024 17:32 PM UTC
  2. PowerServer
  3. # Permalink

latest build?  you mean 3397?

 

sounds like you are deploying to an actual remote machine (not local on your machine) since you are using webdeploy: 

"Web Deploy cannot modify the file 'AppModels.dll' on the destination "

what kind of server is it?  IIS, an appserver, ...

 

is that server running?

can you restart that server?  if iis, just restarting the pool should be enough (never had to do that with deploying to IIS however)

 

 

 

 

Comment
  1. David Peace (Powersoft)
  2. Tuesday, 5 November 2024 17:50 PM UTC
Yes, it's deploying to IIS, I was thrown by the local path details C:\Users\dpeace\AppData\Local\Temp\pbappscache 22.0\ServerAPIs. I've got it now, the problem is at the server end. Another user was testing the application so yes it was running.

Thanks
  1. Helpful
  1. mike S
  2. Tuesday, 5 November 2024 21:05 PM UTC
"Another user was testing the application so yes it was running."



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).
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.