James Atherton
asked on
Problem with CRM 2011 and MSCRMKeyGenerator
I have been running CRM 2011 on SBS 2011 for about a year now, I have on a number of occations usually about 1 to 2 months apart referring to the MSCRMKeyGenerator and that the key is no longer valid, in the past I would just run "C:\Program Files\Microsoft Dynamics CRM\Tools >Microsoft.Crm.Tools.WRPCK eyRenewal. exe /R” and reboot and all would be well. That is until now however. It runs without error, but you cannot log into CRM, and in the event log you get the following errors. Each error is seperated by a number of "=" signs...
Any help would be greatly appreciated.
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 7/13/2012 7:59:30 AM
Event time (UTC): 7/13/2012 11:59:30 AM
Event ID: f533a0aa2d6d4923858840d999 6a8a13
Event sequence: 7566
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/5/ROOT-1-1298662 2614598950 4
Trust level: Full
Application Virtual Path: /
Application Path: C:\Program Files\Microsoft Dynamics CRM\CRMWeb\
Machine name: HERMES
Process information:
Process ID: 8016
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:b7b31b56-6396-e1 11-92a4-00 0acd190178 , ScaleGroupId:00000000-0000 -0000-0000 -000000000 000, KeyType:CrmStaticVersionSc aleGroupKe y, Expired:True, ValidOn:05/05/2012 03:35:21, ExpiresOn:07/04/2012 03:35:21, CreatedOn:05/05/2012 03:35:21, CreatedBy:NT AUTHORITY\NETWORK SERVICE.
at Microsoft.Crm.CrmKeyServic e.ComputeH ash(CrmKey key, Guid scaleGroupId, HashParameterBase[] parameters)
at Microsoft.Crm.Caching.Stat icFileVers ionCache.S taticFileV ersionCach eLoader.Fe tchGeneral StaticVers ion()
at Microsoft.Crm.Caching.Basi cCrmCache` 2.LookupEn try(TKey key, IOrganizationContext context)
at Microsoft.Crm.Application. Utility.Cr mUri.set_U seVersionS tamp(Boole an value)
at Microsoft.Crm.Application. Utility.Cr mUri..ctor (String uri, String organizationName, Boolean useWebResourcesVersion, IOrganizationContext context)
at Microsoft.Crm.Controls.Hea der.SetSty leSheet(St ring file)
at Microsoft.Crm.Controls.Hea der..ctor( )
at Microsoft.Crm.Controls.Bas icHeader.. ctor()
at Microsoft.Crm.Application. Controls.A ppHeader.. ctor()
at ASP.default_aspx.__BuildCo ntrolcrmHe ader()
at ASP.default_aspx.__BuildCo ntrolTree( default_as px __ctrl)
at ASP.default_aspx.Framework Initialize ()
at System.Web.UI.Page.Process Request(Bo olean includeStagesBeforeAsyncPo int, Boolean includeStagesAfterAsyncPoi nt)
at System.Web.UI.Page.Process Request()
at System.Web.UI.Page.Process Request(Ht tpContext context)
at System.Web.HttpApplication .CallHandl erExecutio nStep.Syst em.Web.Htt pApplicati on.IExecut ionStep.Ex ecute()
at System.Web.HttpApplication .ExecuteSt ep(IExecut ionStep step, Boolean& completedSynchronously)
Request information:
Request URL: http://localhost:5555/default.aspx
Request path: /default.aspx
User host address: 127.0.0.1
User: STOUTMOUSE\jatherton
Is authenticated: True
Authentication Type: Negotiate
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 7
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: True
Stack trace: at Microsoft.Crm.CrmKeyServic e.ComputeH ash(CrmKey key, Guid scaleGroupId, HashParameterBase[] parameters)
at Microsoft.Crm.Caching.Stat icFileVers ionCache.S taticFileV ersionCach eLoader.Fe tchGeneral StaticVers ion()
at Microsoft.Crm.Caching.Basi cCrmCache` 2.LookupEn try(TKey key, IOrganizationContext context)
at Microsoft.Crm.Application. Utility.Cr mUri.set_U seVersionS tamp(Boole an value)
at Microsoft.Crm.Application. Utility.Cr mUri..ctor (String uri, String organizationName, Boolean useWebResourcesVersion, IOrganizationContext context)
at Microsoft.Crm.Controls.Hea der.SetSty leSheet(St ring file)
at Microsoft.Crm.Controls.Hea der..ctor( )
at Microsoft.Crm.Controls.Bas icHeader.. ctor()
at Microsoft.Crm.Application. Controls.A ppHeader.. ctor()
at ASP.default_aspx.__BuildCo ntrolcrmHe ader()
at ASP.default_aspx.__BuildCo ntrolTree( default_as px __ctrl)
at ASP.default_aspx.Framework Initialize ()
at System.Web.UI.Page.Process Request(Bo olean includeStagesBeforeAsyncPo int, Boolean includeStagesAfterAsyncPoi nt)
at System.Web.UI.Page.Process Request()
at System.Web.UI.Page.Process Request(Ht tpContext context)
at System.Web.HttpApplication .CallHandl erExecutio nStep.Syst em.Web.Htt pApplicati on.IExecut ionStep.Ex ecute()
at System.Web.HttpApplication .ExecuteSt ep(IExecut ionStep step, Boolean& completedSynchronously)
Custom event details:
========================== ===
Log Name: Application
Source: MSCRMKeyGenerator
Date: 7/13/2012 7:59:30 AM
Event ID: 18949
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: HERMES.StoutMouse.local
Description:
The current active key (KeyType : CrmStaticVersionScaleGroup Key) is expired. This may indicate that a key is not being regenerated correctly. Current Active Key : CrmKey(Id:b7b31b56-6396-e1 11-92a4-00 0acd190178 , ScaleGroupId:00000000-0000 -0000-0000 -000000000 000, KeyType:CrmStaticVersionSc aleGroupKe y, Expired:True, ValidOn:05/05/2012 03:35:21, ExpiresOn:07/04/2012 03:35:21, CreatedOn:05/05/2012 03:35:21, CreatedBy:NT AUTHORITY\NETWORK SERVICE. Key Setting : CrmKeySetting(Id:c2ca8916- bf6c-41d6- b368-3a0ec 709c8a2, KeyType:CrmStaticVersionSc aleGroupKe y, KeyLength:128, KeyGenerationInterval:720, KeyTimeToLive:1440, CryptoTimeToLive:720, Algorithm:HMACSHA256, ArchiveLength:1, Enabled:True, ActiveKeys:[ScaleGroupId=0 0000000-00 00-0000-00 00-0000000 00000,Acti veKeyId=b7 b31b56-639 6-e111-92a 4-000acd19 0178])
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="MSCRMKeyGenerator" />
<EventID Qualifiers="32768">18949</ EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000 </Keywords >
<TimeCreated SystemTime="2012-07-13T11: 59:30.0000 00000Z" />
<EventRecordID>8261878</Ev entRecordI D>
<Channel>Application</Chan nel>
<Computer>HERMES.StoutMous e.local</C omputer>
<Security />
</System>
<EventData>
<Data>CrmStaticVersionScal eGroupKey< /Data>
<Data>CrmKey(Id:b7b31b56-6 396-e111-9 2a4-000acd 190178, ScaleGroupId:00000000-0000 -0000-0000 -000000000 000, KeyType:CrmStaticVersionSc aleGroupKe y, Expired:True, ValidOn:05/05/2012 03:35:21, ExpiresOn:07/04/2012 03:35:21, CreatedOn:05/05/2012 03:35:21, CreatedBy:NT AUTHORITY\NETWORK SERVICE</Data>
<Data>CrmKeySetting(Id:c2c a8916-bf6c -41d6-b368 -3a0ec709c 8a2, KeyType:CrmStaticVersionSc aleGroupKe y, KeyLength:128, KeyGenerationInterval:720, KeyTimeToLive:1440, CryptoTimeToLive:720, Algorithm:HMACSHA256, ArchiveLength:1, Enabled:True, ActiveKeys:[ScaleGroupId=0 0000000-00 00-0000-00 00-0000000 00000,Acti veKeyId=b7 b31b56-639 6-e111-92a 4-000acd19 0178])</Da ta>
</EventData>
</Event>
========================== ===
Log Name: Application
Source: MSCRMKeyGenerator
Date: 7/13/2012 7:59:30 AM
Event ID: 18962
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: HERMES.StoutMouse.local
Description:
Current key (KeyType : CrmStaticVersionScaleGroup Key) is expired. This can indicate that a key is not being regenerated correctly. Current Key : CrmKey(Id:b7b31b56-6396-e1 11-92a4-00 0acd190178 , ScaleGroupId:00000000-0000 -0000-0000 -000000000 000, KeyType:CrmStaticVersionSc aleGroupKe y, Expired:True, ValidOn:05/05/2012 03:35:21, ExpiresOn:07/04/2012 03:35:21, CreatedOn:05/05/2012 03:35:21, CreatedBy:NT AUTHORITY\NETWORK SERVICE.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="MSCRMKeyGenerator" />
<EventID Qualifiers="32768">18962</ EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000 </Keywords >
<TimeCreated SystemTime="2012-07-13T11: 59:30.0000 00000Z" />
<EventRecordID>8261879</Ev entRecordI D>
<Channel>Application</Chan nel>
<Computer>HERMES.StoutMous e.local</C omputer>
<Security />
</System>
<EventData>
<Data>CrmStaticVersionScal eGroupKey< /Data>
<Data>CrmKey(Id:b7b31b56-6 396-e111-9 2a4-000acd 190178, ScaleGroupId:00000000-0000 -0000-0000 -000000000 000, KeyType:CrmStaticVersionSc aleGroupKe y, Expired:True, ValidOn:05/05/2012 03:35:21, ExpiresOn:07/04/2012 03:35:21, CreatedOn:05/05/2012 03:35:21, CreatedBy:NT AUTHORITY\NETWORK SERVICE</Data>
</EventData>
</Event>
Any help would be greatly appreciated.
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 7/13/2012 7:59:30 AM
Event time (UTC): 7/13/2012 11:59:30 AM
Event ID: f533a0aa2d6d4923858840d999
Event sequence: 7566
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/5/ROOT-1-1298662
Trust level: Full
Application Virtual Path: /
Application Path: C:\Program Files\Microsoft Dynamics CRM\CRMWeb\
Machine name: HERMES
Process information:
Process ID: 8016
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:b7b31b56-6396-e1
at Microsoft.Crm.CrmKeyServic
at Microsoft.Crm.Caching.Stat
at Microsoft.Crm.Caching.Basi
at Microsoft.Crm.Application.
at Microsoft.Crm.Application.
at Microsoft.Crm.Controls.Hea
at Microsoft.Crm.Controls.Hea
at Microsoft.Crm.Controls.Bas
at Microsoft.Crm.Application.
at ASP.default_aspx.__BuildCo
at ASP.default_aspx.__BuildCo
at ASP.default_aspx.Framework
at System.Web.UI.Page.Process
at System.Web.UI.Page.Process
at System.Web.UI.Page.Process
at System.Web.HttpApplication
at System.Web.HttpApplication
Request information:
Request URL: http://localhost:5555/default.aspx
Request path: /default.aspx
User host address: 127.0.0.1
User: STOUTMOUSE\jatherton
Is authenticated: True
Authentication Type: Negotiate
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 7
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: True
Stack trace: at Microsoft.Crm.CrmKeyServic
at Microsoft.Crm.Caching.Stat
at Microsoft.Crm.Caching.Basi
at Microsoft.Crm.Application.
at Microsoft.Crm.Application.
at Microsoft.Crm.Controls.Hea
at Microsoft.Crm.Controls.Hea
at Microsoft.Crm.Controls.Bas
at Microsoft.Crm.Application.
at ASP.default_aspx.__BuildCo
at ASP.default_aspx.__BuildCo
at ASP.default_aspx.Framework
at System.Web.UI.Page.Process
at System.Web.UI.Page.Process
at System.Web.UI.Page.Process
at System.Web.HttpApplication
at System.Web.HttpApplication
Custom event details:
==========================
Log Name: Application
Source: MSCRMKeyGenerator
Date: 7/13/2012 7:59:30 AM
Event ID: 18949
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: HERMES.StoutMouse.local
Description:
The current active key (KeyType : CrmStaticVersionScaleGroup
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="MSCRMKeyGenerator" />
<EventID Qualifiers="32768">18949</
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000
<TimeCreated SystemTime="2012-07-13T11:
<EventRecordID>8261878</Ev
<Channel>Application</Chan
<Computer>HERMES.StoutMous
<Security />
</System>
<EventData>
<Data>CrmStaticVersionScal
<Data>CrmKey(Id:b7b31b56-6
<Data>CrmKeySetting(Id:c2c
</EventData>
</Event>
==========================
Log Name: Application
Source: MSCRMKeyGenerator
Date: 7/13/2012 7:59:30 AM
Event ID: 18962
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: HERMES.StoutMouse.local
Description:
Current key (KeyType : CrmStaticVersionScaleGroup
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="MSCRMKeyGenerator" />
<EventID Qualifiers="32768">18962</
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000
<TimeCreated SystemTime="2012-07-13T11:
<EventRecordID>8261879</Ev
<Channel>Application</Chan
<Computer>HERMES.StoutMous
<Security />
</System>
<EventData>
<Data>CrmStaticVersionScal
<Data>CrmKey(Id:b7b31b56-6
</EventData>
</Event>
ASKER
The Async service is running, in the past 50% of the time running the keygrnerator /R and either rebooting or restarting a few services works fine, this time however I am still without. It is stuck. None of the usual suspects work, not restarting the async service, not restarting the PC, not anything that I can tell.
Please help, I am lost...
Please help, I am lost...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The maintenance one is not running, I have tried starting it however to no avail, I am at rollup 10 right now, the problem when I posted this was rollup 8, I upgraded to rollup 10 in the Hopes it would have corrected the issue, alas it did not.
I will try starting the maintenance one again, maybe even setting it to automatic and rebooting to see if that does it. I have looked at the errors, and the GUID of the supposed expired security token is always the same, even after running the /R on the generator, shouldn't that change?
Thank you for your continued assistance...
I will try starting the maintenance one again, maybe even setting it to automatic and rebooting to see if that does it. I have looked at the errors, and the GUID of the supposed expired security token is always the same, even after running the /R on the generator, shouldn't that change?
Thank you for your continued assistance...
ASKER
Hello all,
In a last ditch attempt, I started the async maintenance service, which I would like to point out was manual start from the get go, and it worked, for whatever reason it worked today, why today and not the last few times I tried who knows, but it is up and running. Geez what a pain.
Thanks to everyone who responded though, it is appreciated...
In a last ditch attempt, I started the async maintenance service, which I would like to point out was manual start from the get go, and it worked, for whatever reason it worked today, why today and not the last few times I tried who knows, but it is up and running. Geez what a pain.
Thanks to everyone who responded though, it is appreciated...
Did you check if your CRM Async Service is running?
Regards,
Chinmay.