Forum Visual Studio

Exception during loading with Live Player and TinyIOC

ThreezoolThreezool USMember ✭✭

Hi!

I'm having a issue with using Live Player with TinyIOC on a Xamarin.iOS project where the app gets a exception when trying to resolve a dependency. The app works fine when its being built in AppCenter so it seem to be something with the Live Player causing this.

The exception occurs in this method:

    public void SetupApplication()
    {
        var app = Resolver.Resolve<ISavelyApp>(); // Exception occurs here
        if (app == null)
        {
            var coreBootstrapper = new CoreBootstrapper();
            coreBootstrapper.SetupCore();

            _tinyContainer.RegisterSingle<ISavelyApp, SavelyApp>();
            _tinyContainer.RegisterSingle<ISavelyAnalytics, SavelyIosAnalytics>();
        }

    }

I can't figure out whats causing it due to the exception cannot be thrown with the following error message:

Unhandled Exception:

NInterpret.NInterpretException: Cannot throw `TinyIoC.TinyIoCResolutionException` on thread 1

So i can't even start to resolve the issue due to the actual issue being hidden, do any one have any idea or can point me in the right direction?

Tagged:
Sign In or Register to comment.