I am trying to use Xamarin Forms Previewer in my Project with MVVM Prism and Unity Container and I am getting this error:
Here is the extracted stack for reference:
Xamarin.VisualStudio.ActivationManager|Error|0| The renderer encountered an error while rendering this file: System.ArgumentNullException: Value cannot be null. Parameter name: instance
at Microsoft.Practices.Unity.UnityContainer.RegisterInstance (System.Type t, System.String name, System.Object instance, Microsoft.Practices.Unity.LifetimeManager lifetime) in :0
at Microsoft.Practices.Unity.UnityContainerExtensions.RegisterInstance[TInterface] (Microsoft.Practices.Unity.IUnityContainer container, TInterface instance) in :0
at SellerNS.Bootstrapper.RegisterTypes () in C:\Users\myrepo\Bootstrapper.cs:48
at Prism.Unity.UnityBootstrapper.Run () in :0
at Prism.Bootstrapper.Run (Xamarin.Forms.Application app) in :0
at SellerNS.App..ctor () in C:\Users\myrepo\Seller\App.xaml.cs:20
at at offset 12 in file:line:column :0:0
at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) in /Users/builder/data/lanes/4009/3a62f1ea/source/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:661
I am using:
- Visual Studio 2015 - 14.0.25424.00
- Update 3 JDK 1.8.0_121
- Xamarin 4.3.0.789-cycle9
- Prism.Forms 6.0.1
- Prism.Unity 6.1.1
- Unity 4.0.1
Any idea how to fix it?
