When i load a xxxx.XAML into WPF frame it throws the error ' ', hexadecimal value 0x0C, is an invalid character. Line 1, position 1.
how to find which is causing the problem. when the xxxx.XAML is in another project's start page, it works fine, when i load that condent of xxxx.XAML in arother project means it throws an error why this is happening ?
And also i upgrade my project from vs 2010 to vs 2012
Hexadecimal value 0x0C, is an invalid character exception.
Hexadecimal value 0x00 is a invalid character.
"hexadecimal value 0x00 is an invalid character, line 1 position 1" when creating an e-file in Taxwise®. Article Type: 08/23/2022.
In my case it was that I wanted to load a XAML file using the code below, but it's Build Action was set to Page instead of Resource:
Uri uri = new Uri(resourcePath, System.UriKind.Relative);
Stream stream = Application.GetResourceStream(uri).Stream;
UIElement view = (UIElement)XamlReader.Load(stream);
stream.Close();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With