2

최근에 VS 2012 SDK 및 LightSwitch 확장 성 도구 키트와 함께 Visual Studio 2012 RC가 설치되었습니다. 예외 : Microsoft LightSwitch Visual Studio 2012 RC에서 오류 HRESULT E_FAIL

내 Client.Design의 XAML 코드 -> TControl.XAML 내가 디자이너에서이 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> 

파일. 대신에 나는 디자이너의 영역이 오류 메시지를 참조하십시오

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) 

난 강력하게이 의심 여기에 포함 된 네임 스페이스와 실버 라이트 버전을 함께 할 수있는 뭔가가. 내 프로젝트는이 오류하지만 훨씬 도움이 아무것도에 대한 일반적인 정보를 공개 않았다 실버 버전 5.

빠른 인터넷 검색과 'Stackoverflowing "을 사용하도록 설정되어 있습니다. 어떤 도움도 대단히 감사합니다

.

답변

0

VS2013에서 이것을 해결하려면 I ha d를 따라 가면 http://rathodkrunal.blogspot.com/2011/11/visual-studio-2010-error-hresult-efail.html

Visual Studio의 ItemTemplateCache를 제거하고/setup 플래그를 사용하여 한 번 실행하는 방법에 대해 설명합니다.

는 경우 링크 중단 또는 여기에, 그렇지 않으면 사용할 수없는 오래된 VS이 될하는 데 사용되는 캐시가 어디 :

당신은 프로그램 Files \ Microsoft 비주얼 스튜디오 10.0 \ Common7 \ IDE "에서 프로젝트 캐시를 삭제할 수 있습니다 \ ProjectTemplatesCache "를 실행 한 다음"devenv /setup "을 실행하여 캐시를 다시 작성하여 도움이되는지 확인하십시오.

0

당신은 2012 RC SDK &의 어떤 버전을 설치했는지에 대해 명시 적으로 언급했으나 어떤 버전의 확장 성 키트를 설치 했습니까? 베타 버전으로 출시되었지만 다른 버전이 발급되었는지는 확실하지 않습니다. 특히 LS V2 RC 용.

관련 문제