inohilog

/var/log/inohiro.log

XAML Designer エラー


Visual StudioXAML Designerが例外エラーで使えない。昨晩、メンテナンスモードを仕掛けて就寝したんですが、エラー無く終了。しかし開けない。
どうやらSilverlight 2.0 Beta2 とか(Tools for VSとか)インストールしているとおかしくなるかも的なエラーかもしれない。作業が進まない。どうしませう。
(特定のXAMLが読めないと言うわけではなく、新しくWPFアプリケーションを作った時に最初から入ってるXAMLファイルも読めない。
Bug Report - Microsoft Connect
Designer error after installing VS2008 ENU + Silverlight Tools B2 - Silverlight Forum
WPF デザイナ読み込みエラーのトラブルシューティング - MSDN Library(ja-jp)
XAML エラーとヘルプ - MSDN Library(ja-jp)

エラー詳細

読むのめんどくさい。

型 'MS.Internal.Designer.DocumentOutlineTree' のオブジェクトを型 'System.Windows.Controls.Grid' にキャストできません。 マークアップ ファイル 'Microsoft.VisualStudio.Xaml;component/ms/internal/designer/documentoutlinepane.xaml' のオブジェクト 'MS.Internal.Designer.DocumentOutlineTree' にエラーがあります。
場所 System.Windows.Markup.XamlParseException.ThrowException(String message, Exception innerException, Int32 lineNumber, Int32 linePosition, Uri baseUri, XamlObjectIds currentXamlObjectIds, XamlObjectIds contextXamlObjectIds, Type objectType)
場所 System.Windows.Markup.XamlParseException.ThrowException(ParserContext parserContext, Int32 lineNumber, Int32 linePosition, String message, Exception innerException)
場所 System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord)
場所 System.Windows.Markup.BamlRecordReader.Read(Boolean singleRecord)
場所 System.Windows.Markup.TreeBuilderBamlTranslator.ParseFragment()
場所 System.Windows.Markup.TreeBuilder.Parse()
場所 System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
場所 System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
場所 MS.Internal.Designer.DocumentOutlinePane.InitializeComponent()
場所 MS.Internal.Designer.DocumentOutlinePane..ctor(EditingContext context)
場所 MS.Internal.Designer.DocumentOutline.Intitalize()
場所 MS.Internal.Designer.DocumentOutline.get_ContentHolderControl()
場所 MS.Internal.Designer.DocumentOutline.get_Handle()
場所 MS.Internal.Designer.VSIsolatedViewFactory.VSIsolatedView.get_ViewHandle()
場所 MS.Internal.Host.Isolation.IsolatedView.get_ViewHandle()
場所 MS.Internal.Host.Isolation.IsolatedViewHolder.SetContent(IsolatedView view)
場所 MS.Internal.Designer.DesignerPane.AttachDocumentOutline()
場所 MS.Internal.Designer.DesignerPane.LoadDesignerView()


型 'MS.Internal.Designer.DocumentOutlineTree' のオブジェクトを型 'System.Windows.Controls.Grid' にキャストできません。
場所 MS.Internal.Designer.DocumentOutlinePane.System.Windows.Markup.IComponentConnector.Connect(Int32 connectionId, Object target)
場所 System.Windows.Markup.BamlRecordReader.ReadConnectionId(BamlConnectionIdRecord bamlConnectionIdRecord)
場所 System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord)