Link to home
Start Free TrialLog in
Avatar of James Atherton
James AthertonFlag for United States of America

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.WRPCKeyRenewal.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: f533a0aa2d6d4923858840d9996a8a13
Event sequence: 7566
Event occurrence: 1
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/5/ROOT-1-129866226145989504
    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-e111-92a4-000acd190178, ScaleGroupId:00000000-0000-0000-0000-000000000000, KeyType:CrmStaticVersionScaleGroupKey, 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.CrmKeyService.ComputeHash(CrmKey key, Guid scaleGroupId, HashParameterBase[] parameters)
   at Microsoft.Crm.Caching.StaticFileVersionCache.StaticFileVersionCacheLoader.FetchGeneralStaticVersion()
   at Microsoft.Crm.Caching.BasicCrmCache`2.LookupEntry(TKey key, IOrganizationContext context)
   at Microsoft.Crm.Application.Utility.CrmUri.set_UseVersionStamp(Boolean value)
   at Microsoft.Crm.Application.Utility.CrmUri..ctor(String uri, String organizationName, Boolean useWebResourcesVersion, IOrganizationContext context)
   at Microsoft.Crm.Controls.Header.SetStyleSheet(String file)
   at Microsoft.Crm.Controls.Header..ctor()
   at Microsoft.Crm.Controls.BasicHeader..ctor()
   at Microsoft.Crm.Application.Controls.AppHeader..ctor()
   at ASP.default_aspx.__BuildControlcrmHeader()
   at ASP.default_aspx.__BuildControlTree(default_aspx __ctrl)
   at ASP.default_aspx.FrameworkInitialize()
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep 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.CrmKeyService.ComputeHash(CrmKey key, Guid scaleGroupId, HashParameterBase[] parameters)
   at Microsoft.Crm.Caching.StaticFileVersionCache.StaticFileVersionCacheLoader.FetchGeneralStaticVersion()
   at Microsoft.Crm.Caching.BasicCrmCache`2.LookupEntry(TKey key, IOrganizationContext context)
   at Microsoft.Crm.Application.Utility.CrmUri.set_UseVersionStamp(Boolean value)
   at Microsoft.Crm.Application.Utility.CrmUri..ctor(String uri, String organizationName, Boolean useWebResourcesVersion, IOrganizationContext context)
   at Microsoft.Crm.Controls.Header.SetStyleSheet(String file)
   at Microsoft.Crm.Controls.Header..ctor()
   at Microsoft.Crm.Controls.BasicHeader..ctor()
   at Microsoft.Crm.Application.Controls.AppHeader..ctor()
   at ASP.default_aspx.__BuildControlcrmHeader()
   at ASP.default_aspx.__BuildControlTree(default_aspx __ctrl)
   at ASP.default_aspx.FrameworkInitialize()
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep 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 : CrmStaticVersionScaleGroupKey) is expired.  This may indicate that a key is not being regenerated correctly.  Current Active Key : CrmKey(Id:b7b31b56-6396-e111-92a4-000acd190178, ScaleGroupId:00000000-0000-0000-0000-000000000000, KeyType:CrmStaticVersionScaleGroupKey, 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-3a0ec709c8a2, KeyType:CrmStaticVersionScaleGroupKey, KeyLength:128, KeyGenerationInterval:720, KeyTimeToLive:1440, CryptoTimeToLive:720, Algorithm:HMACSHA256, ArchiveLength:1, Enabled:True, ActiveKeys:[ScaleGroupId=00000000-0000-0000-0000-000000000000,ActiveKeyId=b7b31b56-6396-e111-92a4-000acd190178])
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.000000000Z" />
    <EventRecordID>8261878</EventRecordID>
    <Channel>Application</Channel>
    <Computer>HERMES.StoutMouse.local</Computer>
    <Security />
  </System>
  <EventData>
    <Data>CrmStaticVersionScaleGroupKey</Data>
    <Data>CrmKey(Id:b7b31b56-6396-e111-92a4-000acd190178, ScaleGroupId:00000000-0000-0000-0000-000000000000, KeyType:CrmStaticVersionScaleGroupKey, 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:c2ca8916-bf6c-41d6-b368-3a0ec709c8a2, KeyType:CrmStaticVersionScaleGroupKey, KeyLength:128, KeyGenerationInterval:720, KeyTimeToLive:1440, CryptoTimeToLive:720, Algorithm:HMACSHA256, ArchiveLength:1, Enabled:True, ActiveKeys:[ScaleGroupId=00000000-0000-0000-0000-000000000000,ActiveKeyId=b7b31b56-6396-e111-92a4-000acd190178])</Data>
  </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 : CrmStaticVersionScaleGroupKey) is expired.  This can indicate that a key is not being regenerated correctly.  Current Key : CrmKey(Id:b7b31b56-6396-e111-92a4-000acd190178, ScaleGroupId:00000000-0000-0000-0000-000000000000, KeyType:CrmStaticVersionScaleGroupKey, 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.000000000Z" />
    <EventRecordID>8261879</EventRecordID>
    <Channel>Application</Channel>
    <Computer>HERMES.StoutMouse.local</Computer>
    <Security />
  </System>
  <EventData>
    <Data>CrmStaticVersionScaleGroupKey</Data>
    <Data>CrmKey(Id:b7b31b56-6396-e111-92a4-000acd190178, ScaleGroupId:00000000-0000-0000-0000-000000000000, KeyType:CrmStaticVersionScaleGroupKey, 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>
Avatar of Chinmay Patel
Chinmay Patel
Flag of India image

Hi jatherton.

Did you check if your CRM Async Service is running?

Regards,
Chinmay.
Avatar of James Atherton

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...
ASKER CERTIFIED SOLUTION
Avatar of Chinmay Patel
Chinmay Patel
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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...
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...