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 at 6:52 AM by MarianG | Created: Aug 23 at 8: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 at 10:23 AM by dot_NET_Junkie | Created: Aug 6 at 6: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 at 1:01 PM by qujck | Created: Jul 21 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: Sep 4 at 11:53 AM by olgierd15 | 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: Aug 8 at 10:26 AM by dot_NET_Junkie | 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: Jul 27 at 1:11 PM by waynebaby | 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