Search code examples
c#wpfxamldesigner

Why WPF designer won't load


I shut down my VS2015 last night. Start it today and my WPF form refuses to load in the designer:

Error

I have tried cleaning, restarting VS2015 and restarting the computer.

What can I do? :(

Update: I installed latest update and was still having issues.

Then I killed the designer and ended up seeing an exception in the designer. It had an option to switch off using the code or something. So I unticked it. Then it opened! Then I traced my program startup and found an infinite loop! The way I had written it meant that on a Monday the loop woudl stop correctly - and it was Monday yesterday! Today being Tuesday caused my loop to hang.

So I have fixed the code. But this means that the designer no longer shows dynamic content and I do not know how to switch that back on.


Solution

  • find xaml designer process XDesProc.exe and kill it using task manager. Reopen file and everything should be ok. If not - install updates or reinstall visual studio.