Quantcast
Channel: Managed Extensibility Framework
Viewing all articles
Browse latest Browse all 265

New Post: The component (unknown) cannot be created outside the HttpContext sharing boundary.

$
0
0
Hi,
I run into this exception this morning because I find out that when I update from old CodePlex code to Microsoft.Composition NuGet package the sharing policy changed and I didn't set the sharing right using the new ConventionBuilder.

The reason is happen is because I've set part A to be shared (singleton) and part A import in ctor part B and part B was HttpContext boundary shared.

Why did we get unknown in there? That made the debug a bit more difficult.

Ido.

Viewing all articles
Browse latest Browse all 265

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>