Answered by:
Error - Invalid Action - Cannot Access CRM 4.0 thru Web or Outlook

Question
-
Hello,
When I try to access CRM 4.0 from either Outlook or the web, I get an error Invalid Action: The selected action was not valid. I get the following errors in the Event Log:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 12/30/2008 10:27:39 AM
Event time (UTC): 12/30/2008 3:27:39 PM
Event ID: f48b3e810f1642978094ab4603755257
Event sequence: 123
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/2/ROOT-1-128751243616549154
Trust level: Full
Application Virtual Path: /
Application Path: C:\Program Files\Microsoft Dynamics CRM\CRMWeb\
Machine name: ServerName
Process information:
Process ID: 5492
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
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:edited for security, ScaleGroupId:00000000-0000-0000-0000-000000000000, KeyType:CrmWRPCTokenKey, Expired:True, ValidOn:11/27/2008 14:36:00, ExpiresOn:12/30/2008 14:36:00, CreatedOn:11/27/2008 14:36:00, CreatedBy:NT AUTHORITY\NETWORK SERVICE.
Request information:
Request path: /OrganizationName/_root/getUIXml.aspx
User host address: 172.16.7.12
User: domain\user
Is authenticated: True
Authentication Type: Negotiate
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 11
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: 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)
Custom event details:
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Host ServerName: failed while starting monitoring asynchronous operations queue. Exception: Microsoft.Crm.CrmConfigObjectNotFoundException: Server ID Was Not Found
at Microsoft.Crm.ServerLocatorService.GetServerIdFromDatabase()
at Microsoft.Crm.ServerLocatorService.GetServerId()
at Microsoft.Crm.ServerLocatorService.GetServerRoles()
at Microsoft.Crm.LocatorService.GetServerRoles()
at Microsoft.Crm.Asynchronous.ServerConfiguration.InitializeOrganizationList()
at Microsoft.Crm.Asynchronous.ServerConfiguration..ctor(ILocatorService locatorService)
at Microsoft.Crm.Asynchronous.ConfigurationFactory.Create(CrmServiceFactory crmServiceFactory, AsyncServiceContext context)
at Microsoft.Crm.Asynchronous.AsyncService.InitializeComponents()
at Microsoft.Crm.Asynchronous.AsyncService.OnStart(String[] args)
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Current active key (KeyType : CrmWRPCTokenKey) is expired. This can indicate that a key is not being regenerated properly. Current Active Key : CrmKey(Id:edited for security, ScaleGroupId:00000000-0000-0000-0000-000000000000, KeyType:CrmWRPCTokenKey, Expired:True, ValidOn:11/27/2008 14:36:00, ExpiresOn:12/30/2008 14:36:00, CreatedOn:11/27/2008 14:36:00, CreatedBy:NT AUTHORITY\NETWORK SERVICE. Key Setting : CrmKeySetting(Id:edited for security, KeyType:CrmWRPCTokenKey, KeyLength:128, KeyGenerationInterval:720, KeyTimeToLive:792, CryptoTimeToLive:72, Algorithm:HMACSHA256, ArchiveLength:1, Enabled:True, ActiveKeys:[ScaleGroupId=00000000-0000-0000-0000-000000000000,ActiveKeyId=edited for security])
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
The Microsoft CRM Asynchronous Processing Service will not start (actually, the message says it started and then stopped). I have tried iisreset, then restarting the service, and have also rebooted the server and trying to restart the service, but no luck.
Some additional info: The database and application were both housed on separate servers. They have since been migrated to different separate servers. The correct server name is properly reflected in the DeploymentSettings table.
Any help with this is greatly appreciated.
Thanks.
Tuesday, December 30, 2008 10:27 PM
Answers
-
The best solution for this would probably be to make sure that the correct deployment prodecures took place. The best article I found and have worked with since is at the link below:
http://blogs.inetium.com/blogs/tedh/archive/2008/03/05/improved-process-for-redploying-microsoft-dynamics-crm-4-0.aspx
This should clean up just about everything.- Marked as answer by MC81 Tuesday, February 24, 2009 3:27 PM
Tuesday, February 24, 2009 3:27 PM
All replies
-
Hi MC81,
Please try to check whether the CRM Asynchronous Service is running properly ? If not, try to start the service.
References:
http://peitor.blogspot.com/2008/12/microsoft-crm-4-crmexception-expired.html
http://usingdynamicscrm.wordpress.com/2008/12/23/invalid-action-while-accessing-microsoft-crm-40/
http://bradmarsh.net/index.php/2008/07/16/crm-4-event-log-mscrmkeygenerator/
Regards,
hadi teo
haditeo.wordpress.com- Proposed as answer by Miss_H Wednesday, July 15, 2009 9:18 AM
Thursday, January 1, 2009 11:09 AM -
From my original post:
The Microsoft CRM Asynchronous Processing Service will not start (actually, the message says it started and then stopped). I have tried iisreset, then restarting the service, and have also rebooted the server and trying to restart the service, but no luck.
Friday, January 2, 2009 3:22 PM -
Hi MC81,
Could you please analyze through the event viewer to see whether there is any error message occured when restarting the Asynchronous Service ?
Thanks,
hadi teo
haditeo.wordpress.comFriday, January 2, 2009 11:18 PM -
There is the standard event that logs the fact that I am trying to start the service, then there is the event that is the second event posted in my opening question.
I managed to resolve the issue using a couple of bandaids in the MSCRM_CONFIG database. In the crmkeyproperties table, there was a row with a column header of Expires On that had an date field with a date of 12/30/2008. I change the date, I can access CRM. Also, in the server table, the new database server and application server are not listed, just the old servers I migrated from. I added the application server information and gave it a GUID that was similar to the other entries, and now the service will start and stay started.
I am not confident that these steps would normally have to take place in order for the system to run after a migration from servers to servers. Any thoughts on why these steps needed to be done?
Monday, January 5, 2009 2:56 PM -
The best solution for this would probably be to make sure that the correct deployment prodecures took place. The best article I found and have worked with since is at the link below:
http://blogs.inetium.com/blogs/tedh/archive/2008/03/05/improved-process-for-redploying-microsoft-dynamics-crm-4-0.aspx
This should clean up just about everything.- Marked as answer by MC81 Tuesday, February 24, 2009 3:27 PM
Tuesday, February 24, 2009 3:27 PM -
Thank you Hadi Teo starting that service works for me!! Thanks a lotTuesday, August 16, 2011 9:05 PM
-
Hey MC81,
I had the same scenario as you. We migrated CRM to another environment. It's strange our CRM migration appeared to work but then stopped the next week. I am assuming services restarted and could not restart again. My crmkeyproperties record had a valid expires on date, but only the old servers were listed in the server table. I renamed one server name record to the correct server and then deleted the other entries. CRM started successfully. I also updated the DeploymentProperties table for the ADSdkRootDomain and ADWebApplicationRootDomain to have a NVarCharColumn of the new server.
Cheers!
Friday, August 19, 2011 4:40 PM