Unable to logon to the Microsoft Dynamics CRM 4.0 server with the error message "Invalid Action. The selected action was not valid"


Symptoms


 

You receive the following error message when you attempt to login to the Microsoft Dynamics CRM 4.0 server:

"Invalid Action: The selected action was not valid"

Additionally, the following error is seen with the Dev error is enabled

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:198367cb-f875-de11-bbf1-0017a446b2fa, ScaleGroupId:00000000-0000-0000-0000-000000000000, KeyType:CrmWRPCTokenKey, Expired:True, ValidOn:07/21/2009 13:17:10, ExpiresOn:08/23/2009 13:17:10, CreatedOn:07/21/2009 13:17:10, 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:198367cb-f875-de11-bbf1-0017a446b2fa, ScaleGroupId:00000000-0000-0000-0000-000000000000, KeyType:CrmWRPCTokenKey, Expired:True, ValidOn:07/21/2009 13:17:10, ExpiresOn:08/23/2009 13:17:10, CreatedOn:07/21/2009 13:17:10, CreatedBy:NT AUTHORITY\NETWORK SERVICE

Source File: Not available

Line Number: Not available

Request URL:  http://testcrm/default.aspx

 
Stack Trace Info: [CrmException: The key specified to compute a hash value is expired, only active keys are valid. Expired Key : CrmKey(Id:198367cb-f875-de11-bbf1-0017a446b2fa, ScaleGroupId:00000000-0000-0000-0000-000000000000, KeyType:CrmWRPCTokenKey, Expired:True, ValidOn:07/21/2009 13:17:10, ExpiresOn:08/23/2009 13:17:10, CreatedOn:07/21/2009 13:17:10, 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.default_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Cause


This error can occur when the CRM Asynchronous service is not started on the CRM server. 

Resolution


 
Use the following steps to restart the Microsoft CRM Asynchronous Processing service on the CRM server:

a) Launch the Services.msc console on the CRM server. (Click Start, then click All Programs, then click on Administrative tools and then select Services.)

b) Select the service named "Microsoft CRM Asynchronous Processing Service"

c) Right click the service and select the Start.

 

Once the Microsoft CRM Asynchronous Processing Service is sucessfully started, verify that you can now login to Dynamics CRM