[英]How to debug custom workflow activity
I'm trying to debug custom workflow activity on Dynamics CRM 2013 Online by following this guide: first second 我正在尝试按照以下指南调试Dynamics CRM 2013 Online上的自定义工作流程活动: 第一 秒
I'm stuck in starting the debugging from profiler since I cannot download or copy/paste the serialized profile. 由于无法下载或复制/粘贴序列化的配置文件,因此无法从配置程序启动调试。 I can dig it from the page source but when I try to start execution i get following error:
我可以从页面源代码中挖掘它,但是当我尝试开始执行时,出现以下错误:
Unhandled Exception:System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Could not load file or assembly 'Microsoft.Xrm.Sdk.Workflow, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Detail: <OrganizationServiceFault xmlns="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
<KeyValuePairOfstringanyType>
<a:key>CallStack</a:key>
<a:value i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema"> at System.Activities.WorkflowApplication.Invoke(Activity activity, IDictionary`2 inputs, WorkflowInstanceExtensionManager extensions, TimeSpan timeout)
at System.Activities.WorkflowInvoker.Invoke(Activity workflow, IDictionary`2 inputs, TimeSpan timeout, WorkflowInstanceExtensionManager extensions)
at PluginProfiler.Library.WorkflowAppDomainProxy.ExecuteCore(Stopwatch watch, ProfilerExecutionReport report, Object instance, Object executionParameter)
at PluginProfiler.Library.AppDomainProxy.Execute(ProfilerExecutionConfiguration configuration, ProfilerExecutionReport report)</a:value>
</KeyValuePairOfstringanyType>
</ErrorDetails>
<Message>Could not load file or assembly 'Microsoft.Xrm.Sdk.Workflow, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.</Message>
<Timestamp>2014-02-21T10:23:47.8284082Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>
There is a popup error window in the second link. 第二个链接中有一个弹出错误窗口。 How can I get that?
我该怎么办? From there it would be possible to download the log file.
从那里可以下载日志文件。
Any ideas? 有任何想法吗?
Please check the list of items. 请检查项目清单。
You use below line of code to trace messages. 您使用下面的代码行来跟踪消息。
ITracingService tracingService = executionContext.GetExtension(); ITracingService tracingService = executeContext.GetExtension(); tracingService.Trace("In Execute!");
tracingService.Trace(“正在执行!”);
Enable trace logging To enable trace logging in an organization that supports this feature, in the web application navigate to Settings > Administration > System Settings. 启用跟踪日志记录要在支持此功能的组织中启用跟踪日志记录,请在Web应用程序中导航至“设置”>“管理”>“系统设置”。 In the Customization tab, locate the drop-down menu labeled Enable logging to plug-in trace log and select one of the available options.
在“定制”选项卡中,找到标记为“启用日志记录到插件跟踪日志”的下拉菜单,然后选择一个可用选项。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.