Design time configuration and multiple types in one file

It appears that when make use of Design time configuration with Unity, it does not like if the type you are mapping to exists in a file with other types. In my case I have an interface that inherit...

Id #12771 | Release: None | Updated: Dec 24, 2014 at 1:28 PM by arifkh | Created: Dec 23, 2014 at 11:01 PM by arifkh

Issue when trying to resolve a generic interface expecting an interface not concrete implementation - IInterface<IAnotherInterface>

As part of the example code for MediatR on GitHub there are a number of implementations for different IoC containers. The example sets up a number of Notification handlers which the mediator publ...

Id #12770 | Release: None | Updated: Dec 16, 2014 at 7:06 PM by randylevy | Created: Dec 16, 2014 at 3:53 PM by WestDiscGolf

Implement IServiceProvider

Please implement the System.IServiceProvider interface. It's a no-brainer and not a breaking change of any kind. Will help integrate the Dependency inversion principle into 3rd party applications...

Id #12769 | Release: None | Updated: Nov 1, 2014 at 3:59 PM by abatishchev | Created: Nov 1, 2014 at 7:15 AM by abatishchev

Exception retrieving registration for open generic type registration mapped to type with generic restriction

Reproducible with the following example: using System; using Microsoft.Practices.Unity; interface IBar { } interface IFoo<TBar> { } class Foo<TBar> : IFoo<TBar> where TBar : IBar { } class Pro...

Id #12768 | Release: None | Updated: Oct 29, 2014 at 7:30 PM by randylevy | Created: Oct 29, 2014 at 6:29 PM by OliverHallam

UnityExtensions references ServiceLocation, bindingRedirect doesn't help

After doing an update of all NuGet packages, one of my applications began crashing on start-up with a FileLoadException: Could not load file or assembly 'Microsoft.Practices.ServiceLocation, Versio...

Id #12767 | Release: None | Updated: Nov 11, 2014 at 7:03 PM by fcheung | Created: Oct 20, 2014 at 11:29 PM by CharlieHess

Reference required to assembly 'System.Runtime...'

This is a very odd error. It pops up sporadically, with no apparent cause. So here is what I did: I have a WPF application that targets .NET 4.5 I installed Unity from NuGet, and added a contain...

Id #12766 | Release: None | Updated: Oct 8, 2014 at 7:19 PM by cjrogala | Created: Oct 8, 2014 at 7:19 PM by cjrogala

Unity Container | Register Instance in XML Configuration

I need to register types in Unity.Config file and have this issue where remote object cannot be registered when done from the XML Configuration file. For e.g: This works var test=AccessorHelper....

Id #12765 | Release: None | Updated: Sep 22, 2014 at 3:49 AM by randylevy | Created: Sep 19, 2014 at 7:51 PM by RMK_P

Unity doesn’t work on real device in Xamarin.iOS (only in the simulator)

The Unity container doesn’t work on real device in Xamarin.iOS. It works fine only the simulator. I get following two errors, if I try to start my simple test project on iPhone (iOS 7.1): Error 1...

Id #12764 | Release: None | Updated: Aug 25, 2014 at 7:52 AM by MarianG | Created: Aug 23, 2014 at 9:01 AM by MarianG

parameterless public constructor

"An error occurred when trying to create a controller of type 'AirTimeController'. Make sure that the controller has a parameterless public constructor."

Id #12763 | Release: None | Updated: Aug 8, 2014 at 11:23 AM by dot_NET_Junkie | Created: Aug 6, 2014 at 7:47 PM by King007

Concurrency bug and memory leak in UnityServiceLocator

The constructor of the UnityServiceLocator class calls the container.RegisterInstance method to register itself and in doing that it creates both a concurrency bug and a memory leak, since the use...

Id #12762 | Release: None | Updated: Jul 21, 2014 at 2:01 PM by qujck | Created: Jul 21, 2014 at 10:35 AM by dot_NET_Junkie