step 20 Update script for service model: AOSService on machine: CR-VM-Test-1

 Hi,

Cause: This can be either happening because of timeout or files being temporarily blocked.

A general approach to resolve this issue would be the following:

1. Restart the Environment and try deploying the package again.

2. If that doesn't work, restart the Services and try deploying the package again. 

3. If that doesn't work and if you see the below-mentioned error in the Log file:

The process cannot access the file 'K:\AosService\WebRoot\bin\Microsoft.Dynamics.ApplicationPlatform.XppServices.Instrumentation.dll' because it is being used by another process, following the below mentioned Action Plan should resolve the issue.

Action Plan:

1. Open a PowerShell prompt as Administrator
2. Navigate to <Services drive>\DeployablePackages\<Runbook ID>\AOSService\Scripts
3. Create a temporary directory for log files
4. Execute: .\AutoUpdateAOSService.ps1 -LogDir <Log directory from step 3>. (Will likely take 75-100 minutes to complete)
5. Once the manual execution succeeds, delete the contents of the file <Services drive>\DeployablePackages\<RunbookId>\AOSService\Scripts\AutoUpdateAOSService.ps1 and save
6. Resume through LCS

Hope this helps!


Comments

Popular posts from this blog

How to Bypass Next in COC in D365 X++

create movement journal through code in d365 FO x++