我最近安裝了Visual Studio 2012 RC以及VS 2012 SDK和LightSwitch Extensibility Toolkit。異常:錯誤HRESULT E_FAIL與Microsoft LightSwitch Visual Studio 2012 RC
這是我Client.Design的XAML代碼 - > TControl.XAML文件
<UserControl x:Class="CustomControls.Presentation.Controls.TControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:framework="clr-namespace:Microsoft.LightSwitch.Presentation.Framework;assembly=Microsoft.LightSwitch.Client">
<Grid Width="Auto">
<Grid.RowDefinitions>
<RowDefinition Height="100"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
</Grid.RowDefinitions>
<framework:ContentItemPresenter ContentItem="{Binding ChildItems[0]}" Grid.Row="0" Margin="3" />
<framework:ContentItemPresenter ContentItem="{Binding ChildItems[1]}" Grid.Row="0" Margin="3" />
</Grid>
</UserControl>
我看不出這XAML的設計師的輸出。相反,我看到這個錯誤訊息了設計者區域:
Exception: Error HRESULT E_FAIL has been returned from a call to a COM component.
Stacktrace:
at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
at MS.Internal.XcpImports.Collection_InsertValue[T](PresentationFrameworkCollection`1 collection, UInt32 index, CValue value)
at MS.Internal.XcpImports.Collection_InsertDependencyObject[T](PresentationFrameworkCollection`1 collection, UInt32 index, DependencyObject value)
at System.Windows.PresentationFrameworkCollection`1.InsertDependencyObject(Int32 index, DependencyObject value)
at System.Windows.Controls.UIElementCollection.InsertInternal(Int32 index, UIElement value)
我強烈懷疑這是有事情做與這裏所涉及的命名空間和Silverlight的版本。我的項目設置爲使用Silverlight版本5
快速谷歌上搜索和「Stackoverflowing」沒有透露有關這個錯誤,但沒有多大幫助的一些基本信息。
任何幫助,將不勝感激。