Applications must be configured in the Root composition , which is as close as possible to the entry point. In your case, this will be WebApplication. This is a project that should have a link to Unity . None of the other projects should have links to Unity at all.
At the root of the composition, you must follow the Register Resolve Release pattern.
See also this answer - it talks about Ninject instead of Unity, but the concept (and therefore the answer) is the same.
source share