WinRT information: The type 'MyUserControl' was not found.


  • Hi,

    I was trying to create a custom user control in my c++ app, but can't seem to get it to work. This is how I'm referencing it in my main page:

    <Grid x:Name="GlobalGrid"> <local:MyUserControl/> <StackPanel x:Name="DebugStackPanel" HorizontalAlignment="Left" VerticalAlignment="Top" Background="#BFFFFFFF"> <TextBlock x:Name="TestTextBlock" Foreground="Black"/> </StackPanel> <ProgressRing x:Name="ProgressRing" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="40" Height="40" Margin="0,0,10,10" Foreground="White"/> </Grid>

    This crashes immediately at startup, with the following information in the "Output" panel:

    First-chance exception at 0x759B4B32 (KernelBase.dll) in PaperRTS.exe: 0x40080201: WinRT originate error (parameters: 0x80004005, 0x0000003F, 0x0370E684).
    First-chance exception at 0x759B4B32 (KernelBase.dll) in PaperRTS.exe: 0x40080202: WinRT transform error (parameters: 0x80004005, 0x802B000A, 0x0000003E, 0x0370E878).
    First-chance exception at 0x759B4B32 in PaperRTS.exe: Microsoft C++ exception: Platform::COMException ^ at memory location 0x0370ED4C. HRESULT:0x802B000A Unspecified error
    WinRT information: The type 'MyUserControl' was not found. Line: 11 

    Does anyone have any ideas/suggestions as to why this would be happening? I have verified that the XML namespaces are all pointing to the proper place.

    The UserControl itself is the vanilla one that you get when adding it to the solution:



    • Edited by goobers.2 Tuesday, June 4, 2013 6:15 AM
    Tuesday, June 4, 2013 6:02 AM

All replies

  • Hi Goobers.2,

           I am working with you on the support case.  Please contact me when you can.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Wednesday, June 5, 2013 2:16 PM