Forum Discussion
Error creating MSIX Package
- Aug 05, 2020
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.
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.
- martijnk79Aug 11, 2020Brass Contributor
Chacon Thanks for that!