Forum Discussion

martijnk79's avatar
martijnk79
Brass Contributor
Aug 05, 2020
Solved

Error creating MSIX Package

Hello, trying to create my first MSIX package and right away I stumble upon an issue, here is what the log says:   [5-8-2020 15:17:43] [Debug] Processing "%UserProfile%\AppData\Local\Packages\Micr...
  • Chacon's avatar
    Aug 05, 2020

    martijnk79 

    The error says that the 1001s TypeLib element of ComInterface is invalid.

    /*[local-name()="ComInterface" and namespace-uri()="http://schemas.microsoft.com/appx/manifest/com/windows10"][1]
    /*[local-name()="TypeLib" and namespace-uri()="http://schemas.microsoft.com/appx/manifest/com/windows10"][1001]

    That is because ComInterface can only hold up to 1000 TypeLib elements.

     

    To work around this, you can manually edit the manifest to split the TypeLib elements across multiple ComInterface elements without exceeding 1000 on any of them. Something like this:

        <com:Extension Category="windows.comInterface">
          <com:ComInterface>
            <com:TypeLib Id="7a341bcb-a9eb-4bd6-ae98-610545b6bad6">...</com:TypeLib>
            ...
            <com:TypeLib Id="4feb5d08-4ba4-432b-9684-9bd4e25be16d">...</com:TypeLib>
          </com:ComInterface>
        </com:Extension>
        <com:Extension Category="windows.comInterface">
          <com:ComInterface>
            <com:TypeLib Id="d6ead1ce-d822-47b8-9db6-7c5c491ebb7b">...</com:TypeLib>
            ...
            <com:TypeLib Id="39728c88-4324-4a52-b7d6-3f23abafba06">...</com:TypeLib>
          </com:ComInterface>
        </com:Extension>

     

    Thank you for letting us know of this issue. We will update the packaging tool to prevent this error in future releases.

Resources