VS2010 SP1 WPF designer crashes, without SP1 it's working [closed]
Setup:
- Windows Server 2008 R2 x64
- Visual Studio 2010 SP1
- WPF Application targetting .NET 3.5 SP1
- Uses Infopath FormControl
- No add-ins on VS2010
Problem: First open any window or usercontrol in Visual Studio designer and it opens normally. Then simply click on xaml source (I'm using split view, xaml and the "actual control") and the designer will crash almost immediately with the following exception:
[System.Reflection.Adds.UnresolvedAssemblyException] Type universe cannot resolve assembly: Microsoft.VisualStudio.Tools.Applications.Adapter, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
I looked from GAC and the assembly is there (processor architecture is MSIL).
What's going on in here? No help from Google. Funny thing is that without VS2010 SP1 everything works just fine...
Update
I tried VS2010 repair from the dvd and SP1 reinstall but it didn't help. However, I was able to narrow it down. If I remove the reference to Microsoft.Office.InfoPath.FormControl from the project it works fine. So why does the FormContol crash the designer on every WPF window and usercontrol and only with VS2010 SP1?
Office 2007 Repair didn't help either.
This Blog help me a lot hope this would help you also. http://www.purelogic.ca/blog/matt/2010/10/13/visual-studio-2010-designer-exception-unresolvedassemblyexception.aspx
What about running the VS2010 repair? try repairing it from the original DVD and then re-install the SP1 over it.
That's my suggestion if you don't get an answer that explicitly solves your problem.
精彩评论