2016-10-09 3 views
-1

Windows 스토어에 응용 프로그램을 추가합니다. 응용 프로그램을 다운로드하고 실행할 때 모든 작업이 올바르게 진행되지만 일부 사람들이 응용 프로그램을 다운로드하고 실행할 때 예외가 발생합니다.System.Runtime.InteropServices.COMException : 클래스가 등록되지 않았습니다.

enter image description here

TRIDA není zaregistrována == 클래스

코드가

등록되지 않은 :

나는이 예외를 해결하는 방법을 알고
try 
{ 

    StoreContext storeContext = Windows.Services.Store.StoreContext.GetDefault(); 
    string[] productKinds = {"Durable", "Consumable", "UnmanagedConsumable" }; 
    List<String> filterList = new List<string>(productKinds); 
    queryResult = await storeContext.GetAssociatedStoreProductsAsync(filterList); 
    } 
    catch (Exception ex) 
    { 
     MessageDialog(ex, "UpdateDatabaze"); 
    } 

누구?

+0

어떤 앱이 좋습니까? 테스트를 위해 다운로드 할 수 있습니까? 당신은이 문제를 당신 편에서 재현 할 수 있습니까? 어떤 코드 라인이이 예외를 던지는지 아셨습니까? 이 예외를 가진 사람들의 환경은 어떻습니까? 수 [이 스레드] (http://stackoverflow.com/questions/11077477/class-not-registered-exception-from-hresult-0x80040154-regdb-e-classnotreg) 도움이 될까요? –

+0

감사합니다. 그러나이 문제를 해결했습니다. 몇 분 동안 나는 해결책을 쓴다. 그것은 정말 간단합니다 :) – LOOK

답변

0

StoreContext 클래스를 지원하는 대상 버전 Windows 기념일 (빌드 버전 14393)으로 프로그램을 프로그래밍하고 있습니다. 사용자가 응용 프로그램을 다운로드하고 Windows가 기념일이 아니지만 빌드 10 만 5 천이거나 가장 낮은 빌드 버전의 Windows 10 만 예외가 발생하면 질문에 설명 된 예외가 발생합니다.

관련 문제