Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# WPF VS2010
how to deal with this problem.
Error 1 Could not load type 'Microsoft.Expression.DesignModel.Core.ISharedInstanceBuilder' from assembly 'Microsoft.Expression.DesignModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. F:\C#程序\WpfApplication2\WpfApplication2\MainWindow.xaml 1
 
the Design of Wpf cannot use
Posted 4-Oct-12 5:12am
Comments
Wes Aday at 4-Oct-12 11:20am
   
http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/2c1f3fcb-bb42-48ba-a18a-108686bc04df
Kenneth Haugland at 4-Oct-12 11:20am
   
looks like a missing Blend dll?

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Could not load type 'Microsoft.Expression.DesignModel.Core.ISharedInstanceBuilder' from assembly 'Microsoft.Expression.DesignModel, Version=4.0.0.0
Refer: VS 2010 XAML Design View Load always fail with a Type Load Exception[^]
 
It says:
Looking at this error, we suspect a bad copy of this assembly somehow got into the GAC and is supplanting Visual Studio's version of the Microsoft.Expression.DesignModel assembly (the Visual Studio designer uses portions of Blend). You can prove this by attaching a debugger or using file monitor to check the path this assembly is being loaded from. It should be loaded from %programfiles%\microsoft visual studio 10.0\common7\ide\privateassemblies.
 
The copy of the assembly in PrivateAssemblies has the required interface and is required to make the Visual Studio designer work.
 
To remedy:
 
1. Quit all copies of Visual Studio, then fire up an elevated Visual Studio command prompt (you should see "Visual Studio Command Prompt (2010)" under the Visual Studio folder on your start menu - right click and run it as administrator assuming you're on a Windows 7 or Windows Vista PC.
 
2. In the command prompt you just started, run “gacutil /l Microsoft.Expression.DesignModel” to see if the assembly is in the GAC
 
3. If it is, then run “gacutil /u Microsoft.Expression.DesignModel” to remove it from the GAC - it should NOT be there.
 
4. Now try running Visual Studio again and try the action that showed the problem - it should be OK now.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web01 | 2.8.140709.1 | Last Updated 4 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid