Current key (KeyType : CrmWRPCTokenKey) is expired. This can indicate that a key is not being regenerated correctly.

Accessing to any of the available orgs on CRM 2011, was throwing an error message.

Log file warning:

Exception information:
    Exception type: CrmException
    Exception message: The key specified to compute a hash value is expired, only active keys are valid.  Expired Key : CrmKey(Id: — guid here –, ScaleGroupId:00000000-0000-0000-0000-000000000000, KeyType:CrmWRPCTokenKey, Expired:True, ValidOn:07/30/2012 00:48:28, ExpiresOn:09/01/2012 00:48:28, CreatedOn:07/30/2012 00:48:28,
CreatedBy:--crm user here —   at Microsoft.Crm.CrmKeyService.ComputeHash(CrmKey key, Guid scaleGroupId, 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)

Or log error

Current key (KeyType : CrmWRPCTokenKey) is expired.  This can indicate that a key is not being regenerated correctly.  Current Key : CrmKey(Id: — guid here –, ScaleGroupId:00000000-0000-0000-0000-000000000000, KeyType:CrmWRPCTokenKey, Expired:True, ValidOn:07/30/2012 00:48:28, ExpiresOn:09/01/2012 00:48:28, CreatedOn:07/30/2012 00:48:28, CreatedBy:–crm user here –.

How to solve:

  1. Make sure “Microsoft CRM Asynchronous Processing Service” is running.(start>run type services.msc)
  2. Execute Microsoft.Crm.Tools.WRPCKeyRenewal.exe with parameter /R ( Microsoft.Crm.Tools.WRPCKeyRenewal.exe /R ) from :\ \Microsoft Dynamics CRM\Tools ( for example – C:\Program Files\Microsoft Dynamics CRM\Tools )

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: