Friday, 23 December 2011

Fix for Visual Studio 2010 crash with XAML files after installing Silverlight 4

Fix for Visual Studio 2010 crash with XAML files after installing Silverlight 4
After installing Silverlight 4 my XAML files never use to open. Visual Studio 2010 crashes saying Restart or Close.  After bit research on net I found the following solution.
1.       Uninstall existing System.Window.dll from GAC
2.       Go to path C:\Program Files\Microsoft Silverlight\4.0.60831.0\
 (Version could be different)
3.       Take System.Windows.dllfrom path above and register in the GAC.
And hurry! The XAML file designers are opening without any crash.Addition TipsEven if you facing he problem please check the setting of default program to open the XAML file
1.       Open the Silverlight project in the Visual Studio
2.       Right click the XAML file and select “Open With..” from the menu.
3. Ensure the “Windows Presentation Foundation Designer “ is set as default.

Hope this will save lot of people’s day!

1 comment:

  1. The above things are not working for me.

    ReplyDelete