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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Cannot access CRM 365: "An error has occurred. Try this action again..."

(0) ShareShare
ReportReport
Posted on by 212

Hello. I am administering CRM 365. Previously, users were able to access CRM 365 via the browser. Recently, when trying to access CRM 365 via the browser, the following error message is displayed (users do not even get the login prompt):

An error has occurred. 

Try this action again. If the problem continues, check the Microsoft Dynamics 365 Community for solutions or contact your organization's Microsoft Dynamics 365 Administrator. Finally, you can contact Microsoft Support.

I restarted the CRM 365 server but that did not work. Is there a way to troubleshoot this error?

*This post is locked for comments

I have the same question (0)
  • Rose Duley Profile Picture
    780 on at
    RE: Cannot access CRM 365: "An error has occurred. Try this action again..."

    Sorry, I forgot to add that we are using Dynamics CRM 2016 on-premise (Dynamics 365 on-premise as it is now known).

  • Rose Duley Profile Picture
    780 on at
    RE: Cannot access CRM 365: "An error has occurred. Try this action again..."

    Hi

    Please i need help on this.  Our CRM on-premise is down.  Both internal and IFD.  We continually get this error with 500 Internatl server error.  I have reimported certificates, gone through all the steps on the ADFS server, CRM server and WAP and still get the same error.  I have done everything suggested on forums wrt this error and nothing has helped. The relying party trusts for the CRM are in an error state all the time and will not update from Federation Metadata with "An error occurred during an attempt to read the federation metadata.  Verify that the specified URL or host name is a valid federation metadata endpoint.  Verify your proxy server setting. Error message: The remote server returned an error: (500) internal server error. "  Same error over and over.   Every time someone tries to access the CRM (including ADFS) the CRM server shows event ID 1309:

    Event code: 3005

    Event message: An unhandled exception has occurred.

    Event time: 2022-11-10 03:34:52 PM

    Event time (UTC): 2022-11-10 01:34:52 PM

    Event ID: 9600e42c0eed458c805cd060a3205feb

    Event sequence: 1092

    Event occurrence: 154

    Event detail code: 0

    Application information:

       Application domain: /LM/W3SVC/2/ROOT-1-133125463697610550

       Trust level: Full

       Application Virtual Path: /

       Application Path: C:\Program Files\Microsoft Dynamics CRM\CRMWeb\

       Machine name: CRM

    Process information:

       Process ID: 4256

       Process name: w3wp.exe

       Account name: HIDDEN

    Exception information:

       Exception type: CryptographicException

       Exception message: Invalid provider type specified.

      at System.Security.Cryptography.Utils.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer)

      at System.Security.Cryptography.Utils.GetKeyPairHelper(CspAlgorithmType keyType, CspParameters parameters, Boolean randomKeyContainer, Int32 dwKeySize, SafeProvHandle& safeProvHandle, SafeKeyHandle& safeKeyHandle)

      at System.Security.Cryptography.RSACryptoServiceProvider.GetKeyPair()

      at System.Security.Cryptography.RSACryptoServiceProvider..ctor(Int32 dwKeySize, CspParameters parameters, Boolean useDefaultKeySize)

      at System.Security.Cryptography.X509Certificates.X509Certificate2.get_PrivateKey()

      at System.IdentityModel.Tokens.X509AsymmetricSecurityKey.get_PrivateKey()

      at System.IdentityModel.Tokens.X509AsymmetricSecurityKey.DecryptKey(String algorithm, Byte[] keyData)

      at System.IdentityModel.Selectors.SecurityTokenResolver.SimpleTokenResolver.TryResolveSecurityKeyCore(SecurityKeyIdentifierClause keyIdentifierClause, SecurityKey& key)

      at System.IdentityModel.Tokens.EncryptedSecurityTokenHandler.ReadToken(XmlReader reader)

      at System.IdentityModel.Tokens.SecurityTokenHandlerCollection.ReadToken(XmlReader reader)

      at System.IdentityModel.Services.TokenReceiver.ReadToken(String tokenXml, XmlDictionaryReaderQuotas readerQuotas, FederationConfiguration federationConfiguration)

      at System.IdentityModel.Services.WSFederationAuthenticationModule.SignInWithResponseMessage(HttpRequestBase request)

      at System.IdentityModel.Services.WSFederationAuthenticationModule.OnAuthenticateRequest(Object sender, EventArgs args)

      at Microsoft.Crm.Authentication.Claims.CrmFederatedAuthenticationModule.OnAuthenticateRequest(Object sender, EventArgs args)

      at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

      at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)

      at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    Request information:

       Request URL: internalcrm.xxxxxxx:443/default.aspx

       Request path: /default.aspx

       User host address: xx.xx.xx.xx

       User:  

       Is authenticated: False

       Authentication Type:  

       Thread account name: \HIDDEN

    Thread information:

       Thread ID: 26

       Thread account name: \HIDDEN

       Is impersonating: False

       Stack trace:    at System.Security.Cryptography.Utils.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer)

      at System.Security.Cryptography.Utils.GetKeyPairHelper(CspAlgorithmType keyType, CspParameters parameters, Boolean randomKeyContainer, Int32 dwKeySize, SafeProvHandle& safeProvHandle, SafeKeyHandle& safeKeyHandle)

      at System.Security.Cryptography.RSACryptoServiceProvider.GetKeyPair()

      at System.Security.Cryptography.RSACryptoServiceProvider..ctor(Int32 dwKeySize, CspParameters parameters, Boolean useDefaultKeySize)

      at System.Security.Cryptography.X509Certificates.X509Certificate2.get_PrivateKey()

      at System.IdentityModel.Tokens.X509AsymmetricSecurityKey.get_PrivateKey()

      at System.IdentityModel.Tokens.X509AsymmetricSecurityKey.DecryptKey(String algorithm, Byte[] keyData)

      at System.IdentityModel.Selectors.SecurityTokenResolver.SimpleTokenResolver.TryResolveSecurityKeyCore(SecurityKeyIdentifierClause keyIdentifierClause, SecurityKey& key)

      at System.IdentityModel.Tokens.EncryptedSecurityTokenHandler.ReadToken(XmlReader reader)

      at System.IdentityModel.Tokens.SecurityTokenHandlerCollection.ReadToken(XmlReader reader)

      at System.IdentityModel.Services.TokenReceiver.ReadToken(String tokenXml, XmlDictionaryReaderQuotas readerQuotas, FederationConfiguration federationConfiguration)

      at System.IdentityModel.Services.WSFederationAuthenticationModule.SignInWithResponseMessage(HttpRequestBase request)

      at System.IdentityModel.Services.WSFederationAuthenticationModule.OnAuthenticateRequest(Object sender, EventArgs args)

      at Microsoft.Crm.Authentication.Claims.CrmFederatedAuthenticationModule.OnAuthenticateRequest(Object sender, EventArgs args)

      at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

      at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)

      at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    With regard to the "Invalid provider type specified." if I look at the store with certutil i find that on the CRM server with Windows server 2012R2, the certificate shows the provider as "Microsoft Software Key storage provider" as opposed to "Microsoft RSA Cryptographic Provider" like on our ADFS server which runs on 2016 with the same wildcard certificate.  Could this be the issue? If so, how do we resolve this?

    CRM has been down for 3 days now.

    Another question is about the certificate in the relying party trust - is this supposed to be the same wildcard certificate used for the ADFS Server and CRM server or should it be another type of certificate?

    I really look forward to your response and thank you in advance for your assistance.

    Please let me know if I should be posting this elsewhere for help.

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at
    RE: Cannot access CRM 365: "An error has occurred. Try this action again..."

    If you are using on premise then please check the event viewer log. In addition also check all the CRM services are running properly.

    Did you changed any special user password  like CRM app pool user or the user by which CRM services are running.

  • Verified answer
    awalters Profile Picture
    3,079 on at
    RE: Cannot access CRM 365: "An error has occurred. Try this action again..."

    Some good ideas here, including how to turn on tracing when you can't get in via browser (through reg keys), and some possible culprits, such as something with SSL certs or Claims-based Auth and IFD:

    community.dynamics.com/.../224082

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#3
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans