question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

XAML Node Stream: Missing CurrentObject before EndObject

See original GitHub issue

Description

Creating a new Window which has a PNG image in it - I’ve tried as both Icon of the window or as a background image on a child control. The image is a content resource and shows in the WPF designer - but when I run the application, as soon as I create the window, I get: -

An unhandled exception of type 'System.Xaml.XamlObjectWriterException' occurred in System.Xaml.dll Additional information: XAML Node Stream: Missing CurrentObject before EndObject.

Any way I can get around this?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
FoggyFindercommented, Nov 9, 2016

@isaacabraham workaround - you can just specify assembly:

xmlns:converters="clr-namespace:ViewModels;assembly=FsEmptyWindowsApp2"
1reaction
ReedCopseycommented, Nov 10, 2016

This is a limitation (ie: necessity) when using FsXaml. Since we’re not compiling the XAML into BAML in the same assembly, at runtime, it’s being loaded outside of the assembly, which requires including the assembly in the xmlns definitions.

I’d like to figure out a way to not require this, but at this point, it’s required to use any resources (whether in the assembly or outside of it).

Read more comments on GitHub >

github_iconTop Results From Across the Web

XAML Node Stream: Missing CurrentObject before EndObject
Just in case somebody needs an answer: Remove references for System.Activities.Presentation, PresentationCore, PresentationFramework ...
Read more >
XAML Node Stream: Missing CurrentObject before ...
Hi Allan, Kindly help me regarding this unknown error shown in the below image. As this similar workflow is working on another machine...
Read more >
Understanding XAML Node Stream Structures and Concepts
Learn about how the XAML readers and XAML writers as implemented in .NET XAML Services are based on the design concept of a...
Read more >
WPF Previewer error custom XAML tag : RIDER-28211
Xaml.XamlObjectWriterException: 'XAML Node Stream: Missing CurrentObject before EndObject.' Line number '30' and line position '25'. at System.Xaml.
Read more >
Setting property on IDictionary within a DataTemplate ...
results in an error saying: XAML Node Stream: Missing EndMember for 'System.Windows.ResourceDictionary.{https://schemas.microsoft.com/winfx/2006/xaml}_ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found