Unable to start Sonarr - Epic Fail - TinyIOCResolutionException

I have a brand new installation of Sonarr (develop) on a Win 7 box and I get this message when I try to start Sonarr. I have tried installing the standard release and it works fine. However, I have a backup from a different system that is on develop so it automatically updates it to Develop when I add it. The system has no anti-virus, this is the first thing I have installed on it. Below is the log for the error.

16-2-28 10:24:54.5|Info|NancyBootstrapper|Starting NzbDrone API
16-2-28 10:24:55.2|Trace|EventAggregator|Publishing ApplicationStartedEvent
16-2-28 10:24:56.0|Fatal|WindowsApp|EPIC FAIL: Unable to resolve type: NzbDrone.Core.Messaging.Events.IHandle`1[[NzbDrone.Core.Lifecycle.ApplicationStartedEvent, NzbDrone.Core, Version=2.0.0.3872, Culture=neutral, PublicKeyToken=null]]

TinyIoC.TinyIoCResolutionException: Unable to resolve type: NzbDrone.Core.Messaging.Events.IHandle1[[NzbDrone.Core.Lifecycle.ApplicationStartedEvent, NzbDrone.Core, Version=2.0.0.3872, Culture=neutral, PublicKeyToken=null]] ---> TinyIoC.TinyIoCResolutionException: Unable to resolve type: NzbDrone.Core.Download.DownloadClientFactory ---> TinyIoC.TinyIoCResolutionException: Unable to resolve type: NzbDrone.Core.Download.IDownloadClient ---> TinyIoC.TinyIoCResolutionException: Unable to resolve type: NzbDrone.Core.Download.Clients.RTorrent.RTorrent ---> TinyIoC.TinyIoCResolutionException: Unable to resolve type: NzbDrone.Core.Download.Clients.rTorrent.IRTorrentDirectoryValidator ---> TinyIoC.TinyIoCResolutionException: Unable to resolve type: NzbDrone.Core.Download.Clients.rTorrent.RTorrentDirectoryValidator ---> System.IO.FileLoadException: Could not load file or assembly 'System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047) at NzbDrone.Core.Download.Clients.rTorrent.RTorrentDirectoryValidator..ctor(RootFolderValidator rootFolderValidator, PathExistsValidator pathExistsValidator, DroneFactoryValidator droneFactoryValidator, MappedNetworkDriveValidator mappedNetworkDriveValidator) at lambda_method(Closure , Object[] ) at TinyIoC.TinyIoCContainer.ConstructType(Type requestedType, Type implementationType, ConstructorInfo constructor, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 3677 --- End of inner exception stack trace --- at TinyIoC.TinyIoCContainer.ConstructType(Type requestedType, Type implementationType, ConstructorInfo constructor, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 3684 at TinyIoC.TinyIoCContainer.SingletonFactory.GetObject(Type requestedType, TinyIoCContainer container, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 2834 at TinyIoC.TinyIoCContainer.ResolveInternal(TypeRegistration registration, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 3346 at TinyIoC.TinyIoCContainer.Resolve(Type resolveType, String name) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 1486 at NzbDrone.Common.Composition.Container.<>c__DisplayClass4.<CreateSingletonImplementationFactory>b__3(TinyIoCContainer c, NamedParameterOverloads p) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Composition\Container.cs:line 81 at TinyIoC.TinyIoCContainer.DelegateFactory.GetObject(Type requestedType, TinyIoCContainer container, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 2543 --- End of inner exception stack trace --- at TinyIoC.TinyIoCContainer.DelegateFactory.GetObject(Type requestedType, TinyIoCContainer container, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 2547 at TinyIoC.TinyIoCContainer.ResolveInternal(TypeRegistration registration, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 3346 at TinyIoC.TinyIoCContainer.ConstructType(Type requestedType, Type implementationType, ConstructorInfo constructor, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 3652 --- End of inner exception stack trace --- at TinyIoC.TinyIoCContainer.ConstructType(Type requestedType, Type implementationType, ConstructorInfo constructor, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 3665 at TinyIoC.TinyIoCContainer.SingletonFactory.GetObject(Type requestedType, TinyIoCContainer container, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 2834 at TinyIoC.TinyIoCContainer.ResolveInternal(TypeRegistration registration, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 3346 at TinyIoC.TinyIoCContainer.Resolve(Type resolveType, String name) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 1486 at NzbDrone.Common.Composition.Container.<>c__DisplayClass4.<CreateSingletonImplementationFactory>b__3(TinyIoCContainer c, NamedParameterOverloads p) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Composition\Container.cs:line 81 at TinyIoC.TinyIoCContainer.DelegateFactory.GetObject(Type requestedType, TinyIoCContainer container, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 2543 --- End of inner exception stack trace --- at TinyIoC.TinyIoCContainer.DelegateFactory.GetObject(Type requestedType, TinyIoCContainer container, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 2547 at TinyIoC.TinyIoCContainer.ResolveInternal(TypeRegistration registration, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 3346 at TinyIoC.TinyIoCContainer.<ResolveAllInternal>b__43(TypeRegistration registration) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 3766 at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext()
at System.Linq.Enumerable.d__b11.MoveNext() at System.Collections.Generic.List1…ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)
at lambda_method(Closure , Object[] )
at TinyIoC.TinyIoCContainer.ConstructType(Type requestedType, Type implementationType, ConstructorInfo constructor, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 3677
— End of inner exception stack trace —
at TinyIoC.TinyIoCContainer.ConstructType(Type requestedType, Type implementationType, ConstructorInfo constructor, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 3684
at TinyIoC.TinyIoCContainer.SingletonFactory.GetObject(Type requestedType, TinyIoCContainer container, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 2834
at TinyIoC.TinyIoCContainer.ResolveInternal(TypeRegistration registration, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 3346
at TinyIoC.TinyIoCContainer.Resolve(Type resolveType, String name) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 1486
at NzbDrone.Common.Composition.Container.<>c__DisplayClass4.b__3(TinyIoCContainer c, NamedParameterOverloads p) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Composition\Container.cs:line 81
at TinyIoC.TinyIoCContainer.DelegateFactory.GetObject(Type requestedType, TinyIoCContainer container, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 2543
— End of inner exception stack trace —
at TinyIoC.TinyIoCContainer.DelegateFactory.GetObject(Type requestedType, TinyIoCContainer container, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 2547
at TinyIoC.TinyIoCContainer.ResolveInternal(TypeRegistration registration, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 3346
at TinyIoC.TinyIoCContainer.b__43(TypeRegistration registration) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 3766
at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() at System.Linq.Enumerable.<CastIterator>d__b11.MoveNext()
at System.Linq.Lookup2.Create[TSource](IEnumerable1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer1 comparer) at System.Linq.GroupedEnumerable3.GetEnumerator()
at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() at NzbDrone.Core.Messaging.Events.EventAggregator.PublishEvent[TEvent](TEvent event) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Messaging\Events\EventAggregator.cs:line 51 at NzbDrone.Api.NancyBootstrapper.ApplicationStartup(TinyIoCContainer container, IPipelines pipelines) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Api\NancyBootstrapper.cs:line 39 at Nancy.Bootstrapper.NancyBootstrapperBase1.Initialise()
at Nancy.Owin.NancyMiddleware.UseNancy(NancyOptions options)
at Owin.AppBuilderExtensions.UseNancy(IAppBuilder builder, NancyOptions options)
at NzbDrone.Host.Owin.MiddleWare.NancyMiddleWare.Attach(IAppBuilder appBuilder) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Host\Owin\MiddleWare\NancyMiddleWare.cs:line 20
at NzbDrone.Host.Owin.OwinAppFactory.BuildApp(IAppBuilder appBuilder) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Host\Owin\OwinServiceProvider.cs:line 78
at Microsoft.Owin.Hosting.Engine.HostingEngine.ResolveApp(StartContext context)
at Microsoft.Owin.Hosting.Engine.HostingEngine.Start(StartContext context)
at NzbDrone.Host.Owin.OwinAppFactory.CreateApp(List1 urls) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Host\Owin\OwinServiceProvider.cs:line 52 at NzbDrone.Host.Owin.OwinHostController.StartServer() in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Host\Owin\OwinHostController.cs:line 56 at NzbDrone.Host.NzbDroneServiceFactory.Start() in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Host\ApplicationServer.cs:line 55 at NzbDrone.Host.Router.Route(ApplicationModes applicationModes) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Host\Router.cs:line 38 at NzbDrone.Host.Bootstrap.Start(ApplicationModes applicationModes, StartupContext startupContext) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Host\Bootstrap.cs:line 70 at NzbDrone.Host.Bootstrap.Start(StartupContext startupContext, IUserAlert userAlert, Action1 startCallback) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Host\Bootstrap.cs:line 38
at NzbDrone.WindowsApp.Main(String[] args) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone\WindowsApp.cs:line 23

Any assistance would be greatly appreciated! Thanks!

That appears to be a problem with the .net framework. First thing to check is which .net framework versions are available, 4.0 is required, but knowing which other versions are installed would be useful.

Repairing .net is also a worthwhile step.

1 Like

Yup, a Windows update and its fixed… Thanks!!

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.