【问题标题】:XAML Node Stream: Missing CurrentObject before EndObjectXAML 节点流:EndObject 之前缺少 CurrentObject
【发布时间】:2017-02-03 15:10:16
【问题描述】:

我在工作流服务中遇到错误。我在谷歌上搜索过,但没有找到任何有用的信息。我找到了这个链接,但无法理解。 https://social.msdn.microsoft.com/Forums/vstudio/en-US/ba29b516-7ff4-4fea-b0a5-5ebda5283664/xaml-node-stream-missing-currentobject-before-endobject?forum=wfprerelease

问题随机发生,内部异常

at System.Xaml.XamlObjectWriter.WriteEndObject() at System.Xaml.XamlObjectWriter.Dispose(Boolean disposing) at System.Xaml.XamlWriter.System.IDisposable.Dispose() at System.Activities.XamlIntegration.ActivityXamlServices.InitializeComponentFromXamlResource(Type componentType, String resource, Object componentInstance, XamlSchemaContext schemaContext) at System.Activities.XamlIntegration.ActivityXamlServices.InitializeComponent(Type componentType, Object componentInstance)

【问题讨论】:

    标签: c# .net wpf xaml workflow


    【解决方案1】:

    以防万一有人需要答案: 从项目中删除对 System.Activities.Presentation、PresentationCore、PresentationFramework、WindowsBase 模块的引用。

    还要检查 GC 模式,在运行时它应该会获得在多核上运行的好处。启用服务器模式:

    <configuration>  
       <runtime>  
          <gcServer enabled="true"/>  
       </runtime>  
    </configuration> 
    

    更多详情请参考 gcServer 文档:https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/runtime/gcserver-element

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多