I'm running into a weird issue. I have exactly the same code. On one machine, it works flawlessly. On the other, It throws a InvalidOperationException on GetExport<IXSocketServerContainer>
The offending line is:
_serverContainer = Composable.GetExport<IXSocketServerContainer>();
Here's a screenshot of the exception as well: screenshot.
Any ideas?
The only difference I can think about are that one machine is Win 8, and the other is Win 7.
Further details: took the solution that worked (win 8), copied as is to other machine (win 7), clean all packages, reinstall all nuget dependencies, went over all project adding or reimporting the dependencies, still now working (on the win 7 machine), though the project will build without errors.
Took that non working (yet compiling) project back to the first machine, and it won't work on that machine either. Utterly out of ideas.