Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

System.NullReferenceException occurs in xaml designer

I've created a C++ UWP Windows 10 app using Visual Studio 2015. However, I'm not able to visualize any xaml in the designer because I'm always getting a System.NullReferenceException error. How can I fix this?

like image 655
Jano Avatar asked Aug 03 '15 13:08

Jano


2 Answers

That's very odd but I solved following these steps:

  1. Close any instance of Visual Studio
  2. Open Visual studio and create a new C# UWP empty project (name it as you like, do not matter)
  3. Run the "useless" created project then close it as Visual Studio
  4. Open again your previous C++ UWP project

In my case everything started working!

like image 130
Jano Avatar answered Nov 15 '22 23:11

Jano


Switching solution platform to x86 worked for me.

like image 45
BorisT Avatar answered Nov 15 '22 23:11

BorisT