While applying Quality Update 10.0.46 in a Dynamics 365 Finance and Operations (D365FO) environment through Lifecycle Services (LCS), you may encounter an error related to the DVT script during the servicing process. One common error message is:
DVT script for service mode: AOSService on machine.”
When you dig into the logs, you might also see the following detailed exception:
ERROR: System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
This issue generally indicates that the SSL certificates used by the environment are either expired, invalid, or out of sync—causing trust failures during communication.
Fortunately, the fix is straightforward. Below are the steps that resolved the issue.
Step 1: Abort the Current Servicing Operation
If your environment is currently stuck in a failed or partially completed servicing state, the first thing you must do is abort the running process.
🔹 Note: The “Abort” option is only available when the environment is in the Deployed state.
If it’s in a Servicing or Failed state but still shows the abort option, you may proceed.
To do this:
- Go to your environment in LCS.
- Open the Environment details page.
- Choose Abort from the available options.
This will stop the failed update and bring your environment back to a stable deployed state.
Step 2: Rotate SSL Certificates in LCS
Since the issue is tied to SSL/TLS trust failures, the fix is to rotate the environment's SSL certificates. This refreshes all required secrets, including the certificates used by D365FO services.
Here’s how:
- On the same Environment details page in LCS, go to Maintain.
- Select Rotate secrets.
- Choose the option:
- Rotate the SSL certificates
- Confirm the action.
LCS will now generate and apply new certificates for the environment. This process may take some time, depending on the size and configuration of the environment.
After Rotation: Reapply the Update
Once the secrets rotation completes:
- Retry applying the Quality Update.
- The DVT script should now execute successfully.
- The SSL/TLS trust issue should be resolved.
Conclusion
This SSL/TLS trust error during DVT script execution is surprisingly common when certificates expire or become invalid. Rotating secrets—specifically SSL certificates—resolves the trust issue and ensures smooth communication between services.
This simple two-step process can save hours of troubleshooting and get your D365FO environment back on track quickly.

Comments
Post a Comment