Windows 10 UWP

Error ‘.’, hexadecimal value 0x00, is an invalid character. Line 1, position 1

Encountered this error with Visual Studio? I’ll show you what I’ve done to fix it.

‘.’, hexadecimal value 0x00, is an invalid character. Line 1, position 1

If you are getting this message, then I feel for you. It’s happened to me twice and it’s intensely frustrating. You may see this error as well as a whole bunch of other, nonsensical errors.

The problem is Visual Studio has corrupted an XML or XAML file. You need to hunt down the particular file and either revert back to a preview copy or delete it. Visual Studio will be of no help in narrowing down the source.

Below is a picture of a XAML page that became corrupt. In Visual Studio is looked empty but this is what it looked like in Notepad++. Whole lotta nulls.

NULL contennt

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s