Visual Studio crash when choosing items in the Forms designer toolbox

Ran into a strange issue with Visual Studio 2008 SP1 where it crashed, vanished with no errors, if I selected the Choose items menu item in the context menu of the Windows Forms designer Toolbox window. Attaching a debugger and reproducing the crash gave me the following error.

Wed Feb 25 15:47:55.617 2009 (GMT+1): CLR:(

Wed Feb 25 15:47:55.617 2009 (GMT+1): C:\Windows\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\3.5.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll

Wed Feb 25 15:47:55.618 2009 (GMT+1): )

Wed Feb 25 15:47:55.618 2009 (GMT+1): Rejecting native image because dependency C:\Windows\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll is not native

Wed Feb 25 15:47:55.619 2009 (GMT+1):

Wed Feb 25 15:47:55.619 2009 (GMT+1): ModLoad: 00000000`5aee0000 00000000`5aef2000   System.ComponentModel.DataAnnotations.dll

I have no idea what has caused this, but closing all Visual Studio instances and then starting it once with the /safemode switch and then closing it seems to have fixed the crash.

Leave a Reply

Your email address will not be published. Required fields are marked *