Skip to main content

Notifications

Dynamics 365 Community / Forums / Finance forum / VHD FinandOps10.0.24 ...
Finance forum
Suggested answer

VHD FinandOps10.0.24 AOSService not work from no DataEncryption Certificate

Posted on by

I download 'VHD FinandOps10.0.24' from Shared asset Library.   AOSService can't start with error

AX is shutting down due to an error.
Failed to set database connection string.
Exception details:
Microsoft.Dynamics.AX.InvalidConnectionStringException: Failed to set database connection string. ---> System.ArgumentException: The value's length for key 'password' exceeds it's limit of '128'.
   at System.Data.SqlClient.SqlConnectionString..ctor(String connectionString)
   at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous)
   at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(DbConnectionPoolKey key, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)
   at System.Data.SqlClient.SqlConnection.ConnectionString_Set(DbConnectionPoolKey key)
   at System.Data.SqlClient.SqlConnection.set_ConnectionString(String value)
   at Microsoft.Dynamics.AX.TestDatabaseConnectionString(String connectionString)
   --- End of inner exception stack trace ---
   at Microsoft.Dynamics.AX.TestDatabaseConnectionString(String connectionString)
   at Microsoft.Dynamics.AX.AOS.StartupInternal(String[] Arguments)
   at Microsoft.Dynamics.AX.AOS.Startup()
   at Microsoft.Dynamics.AX.AosConfig.AzureConfig.Init()
   at Microsoft.Dynamics.AX.Batch.BatchService.OnStart(String[] args)

Checking the root cause by trying to decrypt web.config. 

C:\AOSService\webroot\bin\Microsoft.Dynamics.AX.Framework.ConfigEncryptor.exe -decrypt C:\AOSService\webroot\web.config

See error:   No certificate found for id '7366E25DC94FA8A400FA0037FFF3BB300D9482D4'

Checking from web.config.  It is used for Data Encryption but it disappears from local machine certificate list.  

<!--Used to find the certificate used for encryption.-->
    <add key="DataAccess.DataEncryptionCertificateThumbprint" value="7366E25DC94FA8A400FA0037FFF3BB300D9482D4" />
    <!--Used to find the certificate used for signing encrypted data.-->
    <add key="DataAccess.DataSigningCertificateThumbprint" value="7366E25DC94FA8A400FA0037FFF3BB300D9482D4" />

Is there anyone able to use this VHD version?   Please share me solution how to fix it.     My Shared asset library, only has this VHD.   I would like to use for testing standard features without customization. 

pastedimage1650369862524v1.png

  • HienNguyen9999 Profile Picture
    HienNguyen9999 15 on at
    RE: VHD FinandOps10.0.24 AOSService not work from no DataEncryption Certificate

    I also got the same error, can you give more instructions on how to fix it?

  • HienNguyen9999 Profile Picture
    HienNguyen9999 15 on at
    RE: VHD FinandOps10.0.24 AOSService not work from no DataEncryption Certificate

    Hi,

    I also got the same error, can you give more instructions on how to fix it?

    I set VM name the same as VHD name

    pastedimage1654745981471v1.png

    pastedimage1654745998194v2.png

  • pka Profile Picture
    pka on at
    RE: VHD FinandOps10.0.24 AOSService not work from no DataEncryption Certificate

    When open VS2019 or SSMS, will show "the application data folder for Visual Studio could not be created".

    So, I realize that because I rename machine before running "Generate Self-Signed Certificates".   Then, later that user folder "C:\Users\Administrator\AppData" permission goes wrong.  

    So, I refresh the VM and try again without renaming.   Then, it woks fine.    

  • pka Profile Picture
    pka on at
    RE: VHD FinandOps10.0.24 AOSService not work from no DataEncryption Certificate

    I manage to make AOS start up now.  

    VM 10.0.24, must not rename machine name.  Then, run "Generate Self-Signed Certificates" will work.  Also renaming machine name may make user folders go wrong after run "Generate Self-Signed Certificates".  

    It's ok since I won't connect it to VSTS.  I'll leave the machine name as it is.  

  • Martin Dráb Profile Picture
    Martin Dráb 229,247 Most Valuable Professional on at
    RE: VHD FinandOps10.0.24 AOSService not work from no DataEncryption Certificate

    Please give us more information about your problem, not just "I can't open". Did you get an error message, for example?

  • pka Profile Picture
    pka on at
    RE: VHD FinandOps10.0.24 AOSService not work from no DataEncryption Certificate

    Ok no problem.   After run "Generate Self-Signed Certificates" and restart machine.  I can't open VS2019 & SQL Management Studio anymore.   Seem like app data folder has changed.  

    Let me try to compile in command prompt without VS2019.  

  • Martin Dráb Profile Picture
    Martin Dráb 229,247 Most Valuable Professional on at
    RE: VHD FinandOps10.0.24 AOSService not work from no DataEncryption Certificate

    I would try compiling the application.

    I'm still downloading the VHD therefore I can't yet share my own experience.

  • pka Profile Picture
    pka on at
    RE: VHD FinandOps10.0.24 AOSService not work from no DataEncryption Certificate

    Hi Martin

    Thank you for your reply.    I tried all steps but AOS can't start yet.   See from error below, seems like missing module.    Have you ever seen this error? 

    pastedimage1650526567957v1.png

    The description for Event ID 110 from source Microsoft Dynamics 365 for Finance and Operations cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

    If the event originated on another computer, the display information had to be saved with the event.

    The following information was included with the event:

    AX is shutting down due to an error.
    Unable to find the required application modules. Please verify that application is deployed correctly.
    Module DataUpgrade is referencing the following missing modules: WMSAdvancedMigration
    Module WarehouseExecutionWorkloadBackoffice is referencing the following missing modules: WarehousePlanning
    Module WarehouseExecutionWorkload is referencing the following missing modules: WarehousePlanning
    Module AppTroubleshooting is referencing the following missing modules: WarehousePlanning

    Exception details:
    Module 'DataUpgrade' is missing the following dependencies: 'WMSAdvancedMigration'. Module 'WarehouseExecutionWorkloadBackoffice' is missing the following dependencies: 'WarehousePlanning'. Module 'WarehouseExecutionWorkload' is missing the following dependencies: 'WarehousePlanning'. Module 'AppTroubleshooting' is missing the following dependencies: 'WarehousePlanning'.

  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 229,247 Most Valuable Professional on at
    RE: VHD FinandOps10.0.24 AOSService not work from no DataEncryption Certificate

    There are a few extra steps needed. Check out Set up the downloadable VHD for first use.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,888 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,247 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans