Yesterday, after updating to the latest version of Xamarin (both VS and XS), now my app won't start on iOS (still fine on Android) with the following exception. (did not fail prior to the update)
Autofac.Core.DependencyResolutionException: No constructors on type 'FutureState.AppCore.Migrations.Migration001' can be found with the constructor finder 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder'.
I even went ahead and changed the constructor to utilize service location
public Migration001(){
_someService = App.Container.Resolve<SomeService>();
}
and got the exact same crash (iOS only).
Is anyone else seeing this? Is it an underlying issue in the latest release of Xamarin, or does Autofac need a tweak?
2014-09-04 10:04:42.288 FutureStateBreathingRoomiOS[2042:60b] Unhandled managed exception: No constructors on type 'FutureState.AppCore.Migrations.Migration001' can be found with the constructor finder 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder'. (Autofac.Core.DependencyResolutionException)
at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance (IComponentContext context, IEnumerable`1 parameters) [0x00000] in <filename unknown>:0
at Autofac.Core.Resolving.InstanceLookup.Activate (IEnumerable`1 parameters) [0x00000] in <filename unknown>:0
at Autofac.Core.Resolving.InstanceLookup.Execute () [0x00000] in <filename unknown>:0
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance (ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) [0x00000] in <filename unknown>:0
at Autofac.Core.Resolving.InstanceLookup.ResolveComponent (IComponentRegistration registration, IEnumerable`1 parameters) [0x00000] in
<filename unknown>:0
at Autofac.Features.Collections.CollectionRegistrationSource+<>c__DisplayClass4+<>c__DisplayClass6.<RegistrationsFor>b__1 (IComponentRegistration cr) [0x00000] in <filename unknown>:0
at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[Autofac.Core.IComponentRegistration,System.Object].MoveNext () [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.ToArray[Object] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
at Autofac.Features.Collections.CollectionRegistrationSource+<>c__DisplayClass4.<RegistrationsFor>b__0 (IComponentContext c, IEnumerable`1 p) [0x00000] in <filename unknown>:0
at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance (IComponentContext context, IEnumerable`1 parameters) [0x00000] in <filename unknown>:0
at Autofac.Core.Resolving.InstanceLookup.Activate (IEnumerable`1 parameters) [0x00000] in <filename unknown>:0
at Autofac.Core.Resolving.InstanceLookup.Execute () [0x00000] in <filename unknown>:0
at
Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance (ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) [0x00000] in <filename unknown>:0
at Autofac.Core.Resolving.ResolveOperation.ResolveComponent (IComponentRegistration registration, IEnumerable`1 parameters) [0x00000] in <filename unknown>:0
at Autofac.Core.Resolving.ResolveOperation.Execute (IComponentRegistration registration, IEnumerable`1 parameters) [0x00000] in <filename unknown>:0
The program 'Mono' has exited with code 0 (0x0).
Debugging session ended.