Tuesday, December 15, 2009

A fix for: "Attempted to read or write protected memory " in Visual Studio

I got this error after installing the WPF Toolkit and not closing all my Visual Studios before installing. The error was thrown by Visual Studio when I invoked F5 to run my WPF application in debug mode.
In my case the fix was simple:
Goto: Tools - Import and Export Settings - Reset all Settings