MSCRM OpenThreadToken failed with hr = 1008
作者:互联网
原文链接:http://www.cnblogs.com/Republic/archive/2011/08/31/2160667.html
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. |
转载于:https://www.cnblogs.com/Republic/archive/2011/08/31/2160667.html
标签:web,www,MSCRM,31,OpenThreadToken,failed,Line,your,CRM 来源: https://blog.csdn.net/weixin_30448685/article/details/97570607