Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/cakephp/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Workflow CRM 2016 online-调试自定义工作流活动插件注册工具_Workflow_Dynamics Crm Online - Fatal编程技术网

Workflow CRM 2016 online-调试自定义工作流活动插件注册工具

Workflow CRM 2016 online-调试自定义工作流活动插件注册工具,workflow,dynamics-crm-online,Workflow,Dynamics Crm Online,我想使用插件注册工具(从现在起称为PRT)来调试CRM 2016 online的自定义工作流活动。我的问题是,每当我点击“配置文件工作流”按钮时,PRT就会崩溃 有关崩溃的详细信息见事件日志,如下所述 事件日志条目1: 故障应用程序名称:PluginRegistration.exe,版本:8.2.1.8676,时间戳:0x58d073d5 故障模块名称:KERNELBASE.dll,版本:10.0.15063.296,时间戳:0xa0527b0c 异常代码:0xe0434352 故障偏移量:0x

我想使用插件注册工具(从现在起称为PRT)来调试CRM 2016 online的自定义工作流活动。我的问题是,每当我点击“配置文件工作流”按钮时,PRT就会崩溃

有关崩溃的详细信息见事件日志,如下所述

事件日志条目1:

故障应用程序名称:PluginRegistration.exe,版本:8.2.1.8676,时间戳:0x58d073d5 故障模块名称:KERNELBASE.dll,版本:10.0.15063.296,时间戳:0xa0527b0c 异常代码:0xe0434352 故障偏移量:0x0000000000069e08 出错进程id:0xb70 故障应用程序启动时间:0x01d2ea6794b7727a 出现故障的应用程序路径:D:\u temp\SDK\Tools\PluginRegistration\PluginRegistration.exe 故障模块路径:C:\WINDOWS\System32\KERNELBASE.dll 报告Id:21f5bf85-22be-44ca-b884-ef43d9490886 故障包全名: 错误包相对应用程序ID:

事件日志条目二:

应用程序:PluginRegistration.exe 框架版本:v4.0.30319 描述:由于未处理的异常,进程已终止。 异常信息:System.Xml.XPath.XPathException 位于MS.Internal.Xml.XPath.XPathParser.CheckToken(LexKind) 位于MS.Internal.Xml.XPath.XPathParser.ParsePredicate(MS.Internal.Xml.XPath.AstNode) 位于MS.Internal.Xml.XPath.XPathParser.ParseStep(MS.Internal.Xml.XPath.AstNode) 位于MS.Internal.Xml.XPath.XPathParser.ParseRelativeLocationPath(MS.Internal.Xml.XPath.AstNode) 位于MS.Internal.Xml.XPath.XPathParser.ParsePathExpr(MS.Internal.Xml.XPath.AstNode) 位于MS.Internal.Xml.XPath.XPathParser.ParseUnionExpr(MS.Internal.Xml.XPath.AstNode) 位于MS.Internal.Xml.XPath.XPathParser.parsemultiplicativeeExpr(MS.Internal.Xml.XPath.AstNode) 位于MS.Internal.Xml.XPath.XPathParser.ParseAdditiveExpr(MS.Internal.Xml.XPath.AstNode) 位于MS.Internal.Xml.XPath.XPathParser.ParseRelationalExpr(MS.Internal.Xml.XPath.AstNode) 位于MS.Internal.Xml.XPath.XPathParser.ParseEqualityExpr(MS.Internal.Xml.XPath.AstNode) 位于MS.Internal.Xml.XPath.XPathParser.ParseAndExpr(MS.Internal.Xml.XPath.AstNode) 位于MS.Internal.Xml.XPath.XPathParser.ParseOrExpr(MS.Internal.Xml.XPath.AstNode) 位于MS.Internal.Xml.XPath.XPathParser.parsexpresion(MS.Internal.Xml.XPath.AstNode) 位于MS.Internal.Xml.XPath.XPathParser.ParseXPathExpresion(System.String) 位于System.Xml.XPath.XPathExpression.Compile(System.String、System.Xml.IXmlNamespaceResolver) 位于System.Xml.XPath.XPathNavigator.Compile(System.String) 在System.Xml.XmlNode.SelectSingleNode(System.String、System.Xml.XmlNamespaceManager) 位于PluginProfiler.Library.WorkflowXamlUtility.GetCustomActivityFullyQualifiedName(System.String、System.Xml.XmlNode、System.Xml.XmlNamespaceManager) 位于PluginProfiler.Library.WorkflowXamlUtility.GetCustomActivityFullyQualifiedNames(Microsoft.Xrm.Tooling.Connector.CrmServiceClient、System.Xml.XmlDocument、System.Xml.XmlNamespaceManager) 位于PluginProfiler.Library.WorkflowXamlUtility.GetWorkflowActivitySteps(Microsoft.Xrm.Tooling.Connector.CrmServiceClient,System.String) 在Microsoft.Crm.Tools.PluginRegistration.CommonControls.ExistingWorkflow.Refresh()中 在Microsoft.Crm.Tools.PluginRegistration.CommonControls.ProfilerSettingsViewModel.set_SelectedWorkFlow(Microsoft.Crm.Tools.PluginRegistration.CommonControls.ExistingWorkflow)中 在Microsoft.Crm.Tools.PluginRegistration.CommonControls.ProfilerSettingsViewModel.RefreshWorkflows()中 位于Microsoft.Crm.Tools.PluginRegistration.CommonControls.ProfilerSettingsView.Model..ctor(Microsoft.Crm.Tools.Libraries.CrmOrganization,PluginProfiler.OperationType,System.Guid,Microsoft.Crm.Tools.PluginRegistration.CommonControls.ProfilerSettingsView) 在Microsoft.Crm.Tools.PluginRegistration.OrganizationControlViewModel.StartProfiler\u单击()处 在Microsoft.Crm.Tools.PluginRegistration.OrganizationControlViewModel.MenuItem中单击(System.Object) 位于MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(System.Windows.Input.ICommandSource,布尔值) 位于System.Windows.Controls.MenuItem.InvokeClickAfterRender(System.Object) 位于System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate、System.Object、Int32) 位于System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object,System.Delegate,System.Object,Int32,System.Delegate) 在System.Windows.Threading.DispatcherOperation.InvokeImpl()中 位于System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext,System.Threading.ContextCallback,System.Object,布尔值) 在System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,System.Threading.ContextCallback,System.Object,布尔值) 在System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,System.Threading.ContextCallback,System.Object)上运行 在MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext,System.Threading.ContextCallback,System.Object) 在System.Windows.Threading.DispatcherOperation.Invoke()中 在System.Windows.Threading.Dispatcher.ProcessQueue()中 位于System.Windows.Threading.Dispatcher.WndProcHook(IntPtr、Int32、IntPtr、IntPtr、Boolean ByRef) 位于MS.Win32.hwndwapper.WndProc(IntPtr、Int32、IntPtr、IntPtr、Boolean ByRef) 位于MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object) 位于System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate、System.Object、Int32) 位于System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object,System.Delegate,System.Object,Int32,System.Delegate) 位于System.Windows.Threading.Dispatcher.LegacyI
Dim tracer As New StringBuilder
Try
    tracer.Append("running code ...")
    '// do some code here
    tracer.AppendLine("done")

    tracer.Append("running more code ...")
    '// do some code here
    tracer.AppendLine("done")

    '// Write out some info useful for debugging
    tracer.AppendLine(String.Format("value of variable 1 {0}", SomeVariable1))
Catch ex As Exception
    tracer.AppendLine(ex.ToString)
End Try

'// Create a new instance of the new custom error entity and save it
'// Where CustomError is the name of your new entity, assuming you're using strongly-typed entity classes
Dim ErrorObj As New CustomError With { 
    .UserName = "",
    .Message = tracer.ToString
    }

pluginOrgService.Create(ErrorObj)