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, ...
Answered

"An unexpected error has occurred" on LCS

(0) ShareShare
ReportReport
Posted on by 50

We D365 8,1 Update 20 On premise Environment. I am configuring Live environment and after all the details are entered i clicked deploy. LCS is showing below error. I have tried Re-Login to LCS, still error is coming.

pastedimage1605340476789v1.png

Please help as it is Live Environment & right now it is down.

I have the same question (0)
  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi Imthiyaz Mohammed,

    There were some problems with LCS yesterday.

    Have you cleared your browsers cache and try logging on again?

    Things should be ok now.

    Best regards,

    Ludwig

  • Imthiyaz Mohammed Profile Picture
    50 on at

    Ludwig Reinhard,

                     I tried your suggestion now, but the issue is still the same. Can you please check from your side.

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    301,141 Super User 2025 Season 2 on at

    Hi Imthiyaz,

    Version 8.1 is not supported anymore. Do you really want to update this version and not a current 10.0.13/14 environment? The error might be caused by the version you try to deploy. Eventually, you can contact Microsoft Support and create a ticket.

  • Suggested answer
    Faisal Fareed Profile Picture
    10,796 User Group Leader on at

    Hi Imthiyaz,

    May I know please what is the reason of deploying 8.1 PU20 as this version is not supported anymore. Try with the latest version and see how it goes.

  • Imthiyaz Mohammed Profile Picture
    50 on at

    Here is the situation, we are already Live with 8.1 in 2019. We were doing certificate rotation process, during this process we completed step of Service fabric updating &  step of Environment update in LCS was not working and "Maintain" button got disabled after retries. So we had to delete the Live environment. When we try deploy again by selecting latest package we are getting above error. So we tried to deploy without selecting the package, which as of now is partially succeeded as Financial reporting is not able to deploy. We getting below error.

    "Invalid algorithm specified" in log files. The event viewer on the primary Orch server gives below error.

    Message - An error was encountered. Details may be found in the deployment logs at 'C:\ProgramData\Microsoft Dynamics ERP\Management Reporter\Logs'
    Detail -  Microsoft.Dynamics.Ax.Xpp.Security.EncryptionException: Encryption error occured. at Microsoft.Dynamics.Ax.Xpp.Security.EncryptionEngine.Encrypt(String input, String purpose) at Microsoft.Dynamics.Performance.Deployment.Common.DataReencryptionUtility.EncryptAndUpdateAdapterSettings(String connectionString, String dataMartConnectionString, String mrSqlUserPassword, String axSqlPassword) at Microsoft.Dynamics.Performance.Deployment.FinancialReportingDeployer.IntegrationSetup.ConfigureIntegration(ParameterHandler parameterHandler, PackageProperties packageProperties) at Microsoft.Dynamics.Performance.Deployment.FinancialReportingDeployer.Program.ConfigureIntegration(ParameterHandler parameterHandler, PackageProperties packageProperties) at Microsoft.Dynamics.Performance.Deployment.FinancialReportingDeployer.Program.Setup(ParameterHandler parameterHandler) at Microsoft.Dynamics.Performance.Deployment.FinancialReportingDeployer.Program.Main(String[] args)

    Please provide your valuable insights to solve this issue.

  • WillWU Profile Picture
    22,363 on at

    Hi Imthiyaz Mohammed,

    Please make sure that the certificate provider for DataEncryption and the DataSigning has been set to 'Microsoft Enhanced RSA and AES Cryptographic Provider'

    Check this document: docs.microsoft.com/.../setup-deploy-on-premises-pu8-pu11

    pastedimage1605507248335v1.png

    For more details to generate certificate please read:community.dynamics.com/.../d365ffo-on-premises-certificate-templates

  • Imthiyaz Mohammed Profile Picture
    50 on at

    I checked all certificates and all are good. We are stuck at Financial reporting Application installation step in Service Fabric while deploying.

    The primary Orch. Event viewer

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

    Microsoft.Dynamics.Ax.Xpp.Security.EncryptionException: Encryption error occured. at Microsoft.Dynamics.Ax.Xpp.Security.EncryptionEngine.Encrypt(String input, String purpose) at Microsoft.Dynamics.Performance.Deployment.Common.DataReencryptionUtility.EncryptAndUpdateAdapterSettings(String connectionString, String dataMartConnectionString, String mrSqlUserPassword, String axSqlPassword) at Microsoft.Dynamics.Performance.Deployment.FinancialReportingDeployer.IntegrationSetup.ConfigureIntegration(ParameterHandler parameterHandler, PackageProperties packageProperties) at Microsoft.Dynamics.Performance.Deployment.FinancialReportingDeployer.Program.ConfigureIntegration(ParameterHandler parameterHandler, PackageProperties packageProperties) at Microsoft.Dynamics.Performance.Deployment.FinancialReportingDeployer.Program.Setup(ParameterHandler parameterHandler) at Microsoft.Dynamics.Performance.Deployment.FinancialReportingDeployer.Program.Main(String[] args)

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

    Also event viewer refers to below log file

    The log file from the C:\ProgramData\Microsoft Dynamics ERP\Management Reporter\Logs - gives below error.

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

    11/17/2020 9:25:44 PM - Writing database connection string to \\sepit0XXX\agent\wp\D365Live\StandaloneSetup-207104\Apps\FR\Deployment\..\ApplicationPackageRoot\ProcessServicePkg\Code\MRServiceHost.connections.config

    Component: Microsoft.Dynamics.Performance.Deployment.Commands.Database.WriteServiceSqlConnectionString

    Machine: SEPIT0XXX

    Assigning a new secret reader of type Microsoft.Dynamics.Performance.Core.SecretStore.PassThroughSecretReader

    Machine: SEPIT0XXX

    Certificate lookup is using handler of type Microsoft.Dynamics.AX.Configuration.CertificateHandler.LocalStoreCertificateHandler, Microsoft.Dynamics.AX.Configuration.Base, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35

    Machine: SEPIT0XXX

    Bad Key.

    Machine: SEPIT0XXX

    11/17/2020 9:25:44 PM - An error was encountered. Details may be found in the deployment logs at 'C:\ProgramData\Microsoft Dynamics ERP\Management Reporter\Logs' Encryption error occured.

    Machine: SEPIT0XXX

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

    Please help...

    Regards

  • Imthiyaz Mohammed Profile Picture
    50 on at

    The Error "Bad Key." is it related to some stored key inside in AXDB or FinancialReporting DB or registry i should be looking. Please let me know.

    Regards

  • Verified answer
    WillWU Profile Picture
    22,363 on at

    Hi Imthiyaz Mohammed,

    The problem is likely to occur because of the certificate. Please check the certificate again.

    And please see the old thread about same trouble:community.dynamics.com/.../financail-reporting-service-install-fails

  • Imthiyaz Mohammed Profile Picture
    50 on at

    Ok, we found what was causing the issue of "Bad key". It turnout to be while creating the Data Encryption, Data Signing certificates the Key Type should be "Exchange" not Signature.

    Refer below links which talks about similar issue related to certificates

    https://github.com/IdentityServer/IdentityServer2/issues/779

    https://stackoverflow.com/questions/4661637/system-security-cryptography-cryptographicexception-bad-key-for-rsacryptoser

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