web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Error when deploy prod environment first time "Module AOS failed with error code 255"

(1) ShareShare
ReportReport
Posted on by 220

Hello, 

  I am deploying D365 on-premises prod environment, Getting error on Orch event log with "Module AOS failed with error code 255" no any other error massages.

On SF, deployment got stuck on 4Tth application as shown in screen. 

I have tested successfully all nodes with ".\Test-D365FOConfiguration.ps1"  and 

Can anyone suggest me for this?

pastedimage1584011180169v1.png

pastedimage1584011180171v2.png

I have the same question (0)
  • bjmurill Profile Picture
    on at

    Hello,

    Could you please review the name of the file for the credentials?

    "xxxxxxxx\agent\Credentials\Credentials.json"

  • Akshay Pujari Profile Picture
    220 on at

    Any solution for this?

    I notice on Orch Administrative Event having .NetRunning type error;

     AOSSetupHybridCloud.exe terminating:

    Application: AOSSetupHybridCloud.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.Runtime.InteropServices.COMException at System.Fabric.Interop.NativeClient+IFabricQueryClient11.EndGetServiceList2(IFabricAsyncOperationContext) at System.Fabric.FabricClient+QueryClient.GetServiceListAsyncEndWrapper(IFabricAsyncOperationContext) at System.Fabric.Interop.AsyncCallOutAdapter2`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Finish(IFabricAsyncOperationContext, Boolean) Exception Info: System.Fabric.FabricElementNotFoundException at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at SetupInfrastructure.ServiceFabricApplicationSetupManager`1+<CheckApplicationState>d__32[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext() Exception Info: System.AggregateException at System.Threading.Tasks.Task`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetResultCore(Boolean) at AOSSetupHybridCloud.Program.CheckApplicationHealth(System.String, SetupInfrastructure.ServiceFabricApplicationSetupManager`1<SetupConfiguration.AXConfigurationSettings>, Int32, Int32) at AOSSetupHybridCloud.Program.ValidateApplication(System.String, SetupInfrastructure.ServiceFabricApplicationSetupManager`1<SetupConfiguration.AXConfigurationSettings>, Int32, Int32) at AOSSetupHybridCloud.Program.Main(System.String[])

    -----------------------

    I'm running the 2.4.0 agent and .NET Framework 4.8 is installed on all the Orchestrator nodes.

  • bjmurill Profile Picture
    on at

    Also, This is a trust issue with the cert. You will need to add the SSL cert to the trusted store. Can you verify that the onebox certs are in the trusted root store? If something is missing you should be able to find the cert in the personal folder and add it to the trusted root.

    pastedimage1584033764703v2.png

  • Akshay Pujari Profile Picture
    220 on at

    Hello bryan, Thanks for the reply.

     I have checked that all Certs are present in Personal in Trusted root.

    axserviceuser and svc-AXSF$ users are added in all local Administrators group.

    also checked the Credentials path and encrypted values.

    While checking the credentials.json I changed the encrypted values. So now should I need to delete and redeploy the environment from LCS.? (As per Troubleshoot doc)

  • Akshay Pujari Profile Picture
    220 on at

    Anymore suggestions? Still having this issue.

  • Lucas Boewood Profile Picture
    on at

    Hi Akshay,


    Did you delete and redeploy the environment from LCS as you had mentioned? And did that resolve this for you?


    If you are still having issues with this, it might be best to open a support ticket for our tech team to take a look at this with you.

  • bjmurill Profile Picture
    on at

    Yes Please, and let me know the results after this actions.

  • Akshay Pujari Profile Picture
    220 on at

    Hello, Thanks for the response. 

    I have tried to delete and redeploy environment still same issue. All .\Test scripts are done "OK" on Vms.

    When I try to Deploy, I can see the below errors comes when it installs "AOSSetupHybridCloud.exe". I checked .Net Framework version installed on all Orchestrators is .Net 4.8 as per the link.

    pastedimage1584598165122v1.png

    pastedimage1584598665254v4.png

    Then I tried to install it manually from below path again it is giving the same error. But I can deploy Reporting application successfully. 

    pastedimage1584599089097v5.png

  • Lucas Boewood Profile Picture
    on at

    Hi Akshay,

    I hope all is well! I'm not sure if you have resolved this or submitted a support request yet, but if you haven't, I recommend opening a ticket for our tech team to investigate the issue further.

  • Jahangir Raza Profile Picture
    4 on at

    Guys

    Re-run the installation of the Microsoft Visual C++ Redistributable Package for Visual Studio 2013 on all AOS and restart the VM then retry.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 456 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans