Random Musings

June 15, 2009

Open thread token failed error message

Filed under: Dynamics CRM — haditeo @ 9:57 pm
Tags: ,

While i was using ExtractCrmAuthenticationToken method, i have encountered this error message “Open thread token failed with hr = 1008” while running the solution. The compilation is working well.

OpenThreadToken

Why the error message is appeared ?
1) I placed the .ASPX custom solution outside of Dynamics CRM website.
2) In order to extract CRM authentication token, the custom solution must be placed under the Dynamics CRM website so that it can extract the authentication token which is utilized by CRM in the web.config . Here is the web.config definition taken from Dynamics CRM solution

<httpModules>
    <add name ="MapOrg" type="Microsoft.Crm.MapOrgEngine, Microsoft.Crm, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    <add name ="CrmAuthentication" type="Microsoft.Crm.Authentication.AuthenticationEngine, Microsoft.Crm, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>

The solution is :
1) Place the custom ASPX solution under the Dynamics CRM website in order to utilize the ExtractCrmAuthenticationToken method, so that this method can use the CrmAuthentication module.

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: