XAML Node Stream: Missing CurrentObject before EndObject
See original GitHub issueDescription
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:
- Created 7 years ago
- Comments:6 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@isaacabraham workaround - you can just specify assembly:
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).