How to fix missing dll by packaging with MSIX packaging Tool

Haaah 0 Reputation points
2023-02-23T14:47:36.5+00:00

Hello,
I have some issues with MSIX packaging tool. I have an .exe application to pack as a .msix. However, when the package is done and signed, after the install the app crashed. I verified and all files were correctly copied. Here is the logfile after the app execution.

Fatal Exception Begin !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Microsoft.Practices.Unity.ResolutionFailedException: Resolution of the dependency failed, type = "Genesyslab.Desktop.Infrastructure.IBootstrapController", name = "". Exception message is: The current build operation (build key Build Key[Genesyslab.Desktop.Infrastructure.IBootstrapController, null]) failed: The current type, Genesyslab.Desktop.Infrastructure.IBootstrapController, is an interface and cannot be constructed. Are you missing a type mapping? (Strategy type BuildPlanStrategy, index 3) ---> Microsoft.Practices.ObjectBuilder2.BuildFailedException: The current build operation (build key Build Key[Genesyslab.Desktop.Infrastructure.IBootstrapController, null]) failed: The current type, Genesyslab.Desktop.Infrastructure.IBootstrapController, is an interface and cannot be constructed. Are you missing a type mapping? (Strategy type BuildPlanStrategy, index 3) ---> System.InvalidOperationException: The current type, Genesyslab.Desktop.Infrastructure.IBootstrapController, is an interface and cannot be constructed. Are you missing a type mapping? at Microsoft.Practices.ObjectBuilder2.DynamicMethodConstructorStrategy.ThrowForAttemptingToConstructInterface(IBuilderContext context) at BuildUp_Genesyslab.Desktop.Infrastructure.IBootstrapController(IBuilderContext ) at Microsoft.Practices.ObjectBuilder2.DynamicMethodBuildPlan.BuildUp(IBuilderContext context) at Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context) at Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context) --- End of inner exception stack trace --- at Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context) at Microsoft.Practices.ObjectBuilder2.Builder.BuildUp(IReadWriteLocator locator, ILifetimeContainer lifetime, IPolicyList policies, IStrategyChain strategies, Object buildKey, Object existing) at Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name) --- End of inner exception stack trace --- at Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name) at Microsoft.Practices.Unity.UnityContainer.Resolve(Type t, String name) at Microsoft.Practices.Unity.UnityContainerBase.ResolveT at Genesyslab.Desktop.App..ctor() at Genesyslab.Desktop.App.Main() r !!!!!!!!!!!!!!!!!!!!!!!!! Fatal Exception End !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

But as you can see below, the dll file is present in WindowsApp folder.
When the app launched as windowsapp, it crashed but with rights for windowsapp folder, when launched inside th apo folder, the app launched correctly.

enter image description here

How can I fix this issue with the automatic build for the .msix ?
Thanks

Windows development | Windows App SDK
Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 44,776 Reputation points
    2023-02-24T12:36:25.95+00:00

    Hello there,

    You can use the Package Support Framework to trace the crash and try to fix it.

    This article describes error codes you may encounter while installing MSIX packages with MSIX Core and troubleshooting tips. https://learn.microsoft.com/en-us/windows/msix/msix-core/msixcore-troubleshoot

    This article describes known issues and provides troubleshooting tips to consider when converting your apps to MSIX using the MSIX Packaging Tool. Known issues and troubleshooting tips for the MSIX Packaging Tool https://learn.microsoft.com/en-us/windows/msix/packaging-tool/tool-known-issues

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer–

    0 comments No comments

  2. Limitless Technology 44,776 Reputation points
    2023-02-24T12:36:40.2066667+00:00

    Double post

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.