The key specified to compute a hash value is expired, only active keys are valid.

Ever accessed Microsoft Dynamics CRM and got the error “The key specified to compute a hash value is expired, only active keys are valid.” The error logged in the trace is as follows:

MSCRM Error Report:
--------------------------------------------------------------------------------------------------------
Error: Exception of type 'System.Web.HttpUnhandledException' was thrown.

Error Number: 0x8004A106

Error Message: The key specified to compute a hash value is expired, only active keys are valid. Expired Key : CrmKey(Id:d0879dd3-7f9d-de11-a5c4-0003ff392bd3, ScaleGroupId:00000000-0000-0000-0000-000000000000, KeyType:CrmWRPCTokenKey, Expired:True, ValidOn:09/09/2009 20:32:01, ExpiresOn:10/12/2009 20:31:55, CreatedOn:09/09/2009 20:32:01, CreatedBy:NT AUTHORITY\NETWORK SERVICE.

Error Details: The key specified to compute a hash value is expired, only active keys are valid. Expired Key : CrmKey(Id:d0879dd3-7f9d-de11-a5c4-0003ff392bd3, ScaleGroupId:00000000-0000-0000-0000-000000000000, KeyType:CrmWRPCTokenKey, Expired:True, ValidOn:09/09/2009 20:32:01, ExpiresOn:10/12/2009 20:31:55, CreatedOn:09/09/2009 20:32:01, CreatedBy:NT AUTHORITY\NETWORK SERVICE.

Source File: Not available

Line Number: Not available

Request URL: http://localhost/Contoso/loader.aspx

Stack Trace Info: [CrmException: The key specified to compute a hash value is expired, only active keys are valid. Expired Key : CrmKey(Id:d0879dd3-7f9d-de11-a5c4-0003ff392bd3, ScaleGroupId:00000000-0000-0000-0000-000000000000, KeyType:CrmWRPCTokenKey, Expired:True, ValidOn:09/09/2009 20:32:01, ExpiresOn:10/12/2009 20:31:55, CreatedOn:09/09/2009 20:32:01, CreatedBy:NT AUTHORITY\NETWORK SERVICE.]
at Microsoft.Crm.CrmKeyService.ComputeHash(CrmKey key, Guid scaleGroupId, HashParameterBase[] parameters)
at Microsoft.Crm.CrmKeyService.ComputeHash(CrmKey key, HashParameterBase[] parameters)
at Microsoft.Crm.Application.Security.WRPCContext..ctor()
at Microsoft.Crm.Application.Controls.AppPage.ValidateWrpcContext()
at Microsoft.Crm.Application.Controls.AppPage.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

[HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown.]
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.contoso_loader_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


Simply restart the asynchronous service and reset IIS. This should make it work!!!

Comments

  1. It can be resolved by starting the Async service from the platform server(if multiserver installed).

    Other way is by running the "Microsoft.Crm.Tools.WRPCKeyRenewal.exe" from the /Tools frolder.

    Hope the 1st one will solve in 99% and if not try the 2nd one, you will definitely get it resolved.

    Sudhanshu Sahoo

    ReplyDelete
  2. Hello,
    I run into the same problem with MS CRM 2011.
    Neither
    re-)starting the MS CRM Asynchronous Processing Service
    nor
    Microsoft.Crm.Tools.WRPCKeyRenewal.exe /R
    would resolve the problem.
    What else can I do?
    Thank you
    Andreas

    ReplyDelete
  3. Hi,
    found out that thru some other post that you have to do an iisreset after the manual renewal in the commandline.
    That did it then.
    Sincerely
    Andreas

    ReplyDelete
  4. I ran into this as well with CRM2011. Thanks for posting the fix, it worked in my case as well. Does anyone have an idea of what causes this issue, and if there's a way to prevent this from happening again?

    -Marilyn Sizemore

    ReplyDelete
  5. It work for me as well... Thanks

    ReplyDelete
  6. I had to do all of that mentioned above and CRM still did not run. It was forced only after full server restart.

    But the key is the renewal tool: Microsoft.Crm.Tools.WRPCKeyRenewal.exe /R

    ReplyDelete
  7. After restarting the Asynchronous CRM service and restarting IIS Admin Service, i still had to close down my outlook client and open it back up before i could access CRM. However I was able to use my IE browser to navigate to our CRM server and access CRM that way even though i could not access it through the CRM for outlook client

    ReplyDelete
  8. Works perfectly for me!
    Thanks a lot for this solution

    ReplyDelete
  9. Yes this works for me, the first one

    ReplyDelete
  10. I have CRM2011 and started to get this problem. Using WRPCKeyRenewal.exe /R and restarting IIS used to work, but now it has stopped working. Any ideas on how to get CRM back up and running.

    ReplyDelete
  11. I have solve this problem about once a month. Does anyone knows a way to prevent it from happening ?

    ReplyDelete
  12. Thanks for the solution..

    ReplyDelete
  13. is there any solution for online version ?

    ReplyDelete

Post a Comment

Popular posts from this blog

IFD Implementation for custom web pages and Anonymous Access

Using CRM Services to create or update records in large numbers