MSCRM OpenThreadToken failed with hr = 1008

Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: System.InvalidOperationException: OpenThreadToken failed
with hr = 1008

Source Error:


Line 27: //Wrap all your CRM Web Service Code in a using block
Line 28:
Line 29: using (new CrmImpersonator())
Line 30: {
Line 31:

 

The CrmImpersonator only works when your web page in executed in the context

 

The CrmImpersonator only works when your web page in executed in the context
of CRM. While running in your dev environment, it fails. Developing ASP.NET
applications for Microsoft Dynamics CRM 4.0
(http://www.stunnware.com/crm2/topic.aspx?id=ASPNET1) should help.

posted on 2011-08-31 13:53  Lost In Republic  阅读(604)  评论(0编辑  收藏  举报

导航