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: Mon at 1:01 PM by qujck | Created: Mon at 9:35 AM by dot_NET_Junkie

Inconsistent Lazy<T> behaviour when resolving dependency

public class Bar {} public class Foo { public Foo(Bar b) { ; } } public class ChildBar : Bar {} unityContainer.RegisterInstance<Bar> ( new ChildBar() ); unityContainer.Resolve<Foo>(); // ret...

Id #12761 | Release: None | Updated: Jul 18 at 9:49 AM by clynamen | Created: Jul 18 at 9:35 AM by clynamen

Exception when registering UnityPerRequestHttpModule with MVC 5

I use Unity3 with MVC5, and need per request life time manager. However, when I launch the web app, I got server error saying "Cannot register a module after the application has been initialized." ...

Id #12760 | Release: None | Updated: Jul 17 at 5:37 PM by luizfbicalho | Created: Jul 17 at 2:20 AM by bargitta

container.RegisterInstance failed for COM interfaces

.Net 4.5.1 Microsoft.Practices.Unity.dll, v3.5 IComObj1 obj1 = new ComObj1Class(); IComObj2 obj2 = obj1.GetObj2(); _container.RegisterInstance<IComObj2>(obj2); // it failed with System.Argumen...

Id #12759 | Release: None | Updated: May 26 at 3:09 PM by TimSolovyov | Created: May 26 at 1:15 PM by TimSolovyov

Adding the Package to a Visual Basic project inject two C# classes

I believe it is descriptive, but just to clarify, UnityMvcActivator.cs and UnityConfig.cs are in the Project. Of course, written in C# language. Regards

Id #12758 | Release: None | Updated: May 16 at 12:49 AM by randylevy | Created: May 15 at 2:46 PM by Dani_Seara

Unity 3.5 dependency on Microsoft.Practices.ServiceLocation 1.2

Hi, I just update the Unity to latest 3.5. and also Microsoft.Practices.ServiceLocation to 1.3 and i got following error on build : The following error was encountered while reading module 'Mi...

Id #12757 | Release: None | Updated: Jun 12 at 9:16 AM by egism | Created: May 12 at 3:52 PM by dumian

Unity 3.5 and .NET 4.5.2

I get build warning: The primary reference "Microsoft.Practices.Unity, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" could not be resolved because...

Id #12756 | Release: None | Updated: Jun 4 at 6:49 AM by frma | Created: May 8 at 8:25 PM by QrystaL

Xamarin.iOS runtime error

I got runtime error, Missing method System.Linq.Expressions.Expression::IfThen(Expression,Expression) in assembly /Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll, referenced in assembly /[p...

Id #12755 | Release: None | Updated: May 1 at 6:50 PM by amamontovs | Created: May 1 at 6:50 PM by amamontovs

Unity PCL to support wpa81

Support Windows Phone Application 8.1 in addition to the current PCL targets

Id #12754 | Release: None | Updated: Jun 8 at 2:20 AM by Kelunyang | Created: Apr 26 at 12:49 AM by fsimonazzi

Cannot implement interface dynamically.

We have include the Unity block in our projects for many years, and it works very well before I meet the problem. We want to encapsulate the WCF contract interface at client side so that the devel...

Id #12753 | Release: None | Updated: Apr 29 at 2:38 AM by firstsee | Created: Apr 25 at 3:03 AM by firstsee