Blend 4 + VS 2011 (Preview) = Problem?

Problem: 

Microsoft Expression Blend 4 crash on startup after installing Visual Studio 2011 Developer Preview on my machine..

Solution: 

I found this bug report in MS Connect.  Christopher Cole from Microsoft Expression responded that report with the solution below.

There is a compatibility problem with .Net 4.5 installed as part of the Developer Preview and Blend 4. This issue was fixed, but too late to make the preview build.

The workaround is to run:

%windir%\Microsoft.NET\Framework\v4.0.30319\ngen uninstall “%ProgramFiles(x86)%\Microsoft Expression\Blend 4\Microsoft.Expression.Framework.dll”
%windir%\Microsoft.NET\Framework\v4.0.30319\ngen uninstall “%ProgramFiles(x86)%\Microsoft Expression\Blend 4\Microsoft.Expression.Blend.dll”
%windir%\Microsoft.NET\Framework\v4.0.30319\ngen uninstall “%ProgramFiles(x86)%\Microsoft Expression\Blend 4\Microsoft.Expression.Project.dll”

If “%ProgramFiles(x86)%\Microsoft Expression\Blend 4\Microsoft.Expression.WindowsPhone.dll” is present (for scenarios like Blend V4 SP1 or future releases), please also run:
%windir%\Microsoft.NET\Framework\v4.0.30319\ngen uninstall “%ProgramFiles(x86)%\Microsoft Expression\Blend 4\Microsoft.Expression.WindowsPhone.dll”

I just tried it on my machine and it works for me so I’m sharing it with my readers here..

Edit: 

Error: Unrecognized option Files

You have integrated Git with Command Prompt, you will get this error when you run “ngen”. If you happen to have the older preview version of git, you will get the error below when you try to uninstall it. I had to delete the git folder manually.

—————————
Error
—————————
Runtime Error (at 18:1292):

Could not call proc.
—————————
OK
—————————

 

 

5 thoughts on “Blend 4 + VS 2011 (Preview) = Problem?

  1. but it is based on the “2011-preview” have not been unistalled, I cannot solve this problem through this method after unistall the 2011-preview, I fixed the issue by “Repair” Visual studio 2010, it took me about half an hour .

Leave a Reply

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