For the following \"project\" I am getting a very annoying and inexplicable error when resolving Unity for DI.
InvalidOperationException - The type Lo
Try this:
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
try
{
IUnityContainer container = new UnityContainer();
container.RegisterType();
container.RegisterType();
container.RegisterType(new InjectionConstructor(typeof(ILogWriter), typeof(ExceptionManager));
Performance p = container.Resolve();
}
catch (Exception ex)
{
}
}