I have a x64 machine running Windows 7 64 bits. It seems I have a very weird situation since the beginning of the week.
If I build and run a WPF application with platform target set as x86, I got a MissingMethodException when trying to create a Grid:
var g = new Grid();
However, creating a StackPanel works fine:
var s = new StackPanel();
If I switch the platform target to x64 or AnyCpu, both code works fine. I was thinking about a corrupted assembly in the framework but it looks definitively strange... Any idea ?
Update:
I've been in contact with people within the WPF team inside Microsoft. However, they didn't had time to look at my machine to understand what was wrong. In the meantime, I had to reinstall my machine in order to keep working properly. Thank you all for your help. I think the problem was related to the WOW64 functionality, but it's hard to be more precise. I'll update this question if I found more info.