WPF with Prism.DryIoc cannot RegisterInstance of a COM object #2943
Unanswered
EuroEager2008
asked this question in
WPF
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
containerRegistry.RegisterInstance<Microsoft.Office.Interop.Excel.Application>(comServer);
crashes with:DryIoc.ContainerException
(Error.RegisteringInstanceNotAssignableToServiceType;
message: Registered instance of type __ComObject is not assignable to serviceType Microsoft.Office.Interop.Excel.Application.)
If I change to Unity container all is ok.
Since you (at least Dan Siegel I beleive) are advocating(?) DryIoc over Unity, do you have any tips for solving this situation?
Beta Was this translation helpful? Give feedback.
All reactions