Wednesday, February 24, 2010

The key specified to compute a hash value is expired MS CRM error

Error

Actor:
Detail: <error>
  <code>0x8004a106</code>
  <description>The key specified to compute a hash value is expired, only active keys are valid.  Expired Key : CrmKey(Id:709e4e9e-7120-df11-b05c-001372a660a9, ScaleGroupId:00000000-0000-0000-0000-000000000000, KeyType:CrmTicketKey, Expired:True, ValidOn:02/23/2010 11:50:21, ExpiresOn:02/25/2010 11:50:21, CreatedOn:02/23/2010 11:50:21, CreatedBy:domain\username.</description>
  <type>Platform</type>
</error>
Detailed Inner Exception: <error>
  <code>0x8004a106</code>
  <description>The key specified to compute a hash value is expired, only active keys are valid.  Expired Key : CrmKey(Id:709e4e9e-7120-df11-b05c-001372a660a9, ScaleGroupId:00000000-0000-0000-0000-000000000000, KeyType:CrmTicketKey, Expired:True, ValidOn:02/23/2010 11:50:21, ExpiresOn:02/25/2010 11:50:21, CreatedOn:02/23/2010 11:50:21, CreatedBy:domain\username.</description>
  <type>Platform</type>
</error>
Message: Server was unable to process request.

Solution
any of below

   1. run Microsoft.Crm.Tools.WRPCKeyRenewal.exe file located on CRM server at C:\Program Files\Microsoft Dynamics CRM\Tools
   2. Restart MSCRM Synchronous ServiceTechnorati Tags:

Tuesday, February 23, 2010

File not found exception in SharePoint

File not found exception in  SharePoint

I faced this issue many times during working on various sharepoint projects


System.IO.FileNotFoundException: The Web application at http://server/sites/sitecoll/default.aspx could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application. at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, SPUserToken userToken) at Microsoft.SharePoint.SPSite..ctor(String requestUrl)

i was getting this error from my custom web service deployed at sharepoint server

one nice blog post i found at

http://sharepointguild.blogspot.com/2009/04/systemiofilenotfoundexception-error.html

apart from solution mentioned there i did couple of more changes to my web service
  • Changed the app pool identity from NetworkService to a priviledge user
  •  Changed the custom web service app pool to sharepoint web application app pool
either of these worked for me

.