locked
Windows App Certification Kit Fails with error - All types referenced in metadata files must be discoverable

    Question

  • I created a Windows Runtime Component DLL with the following class:

    namespace WindowsRuntimeComponent1
    {
        public ref class Class1 sealed
        {
        public:
            Class1();
            static Platform::Type^ GetTypeTest();
        };
    }


    When I consume this from a C# Windows Store application, the application fails the WACK with errors:

    The type System.Type referenced by type WindowsRuntimeComponent1.__IClass1Statics in file C:\Program Files\WindowsApps\8c839635-2b37-41ba-a6eb-8e01fdfac0d3_1.0.0.2_x86__ze744fdnb0cr8\WindowsRuntimeComponent1.winmd was not found. All types referenced in metadata files must be discoverable.
    The type System.Type referenced by type WindowsRuntimeComponent1.Class1 in file C:\Program Files\WindowsApps\8c839635-2b37-41ba-a6eb-8e01fdfac0d3_1.0.0.2_x86__ze744fdnb0cr8\WindowsRuntimeComponent1.winmd was not found. All types referenced in metadata files must be discoverable.

    Wednesday, November 12, 2014 3:29 AM

All replies

  • Hi Ike,

    Looks like your RuntimeComponent cannot be found on the package file, I would like to know how you create this, because Windows Runtime Component does not a DLL, it create a .winmd file instead.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Thursday, November 13, 2014 1:28 AM
    Moderator
  • Hi Ike,

    Any update? If your code is as simple as you wrote in the question, you may need share CPP code with us to have a better analysis.  "All types referenced in metadata files must be discoverable." looks like some types are not discoverable in your app, you may need to validate this.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Wednesday, November 26, 2014 9:30 AM
    Moderator
  • What more code do you need?  I put the code for the component right in the original post:

    namespace WindowsRuntimeComponent1
    {
        public ref class Class1 sealed
        {
        public:
            Class1();
            static Platform::Type^ GetTypeTest();
        };
    }

    Wednesday, April 15, 2015 7:05 PM