Print Page | Close Window

Cocktail 2012 Authentication.Login

Printed From: IdeaBlade
Category: Cocktail
Forum Name: Community Forum
Forum Discription: A professional application framework using Caliburn.Micro and DevForce
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3664
Printed Date: 02-Jun-2024 at 2:24pm


Topic: Cocktail 2012 Authentication.Login
Posted By: halloweenx8
Subject: Cocktail 2012 Authentication.Login
Date Posted: 25-Sep-2012 at 6:23pm
authentication.ConfigureDomain("Domain Name");
 
authentication.Login(new LoginCredential("username", "password", ""));
 
This use to work with Cockail 1.0.1 now i get this
 
You must first set a valid CompositionProvider by using Composition.SetProvider.
 
anything changed?


-------------
Jean

"If You are Not Making Mistakes, then You are Not Doing Anything.”



Replies:
Posted By: mgood
Date Posted: 25-Sep-2012 at 11:09pm
This looks like your bootstrapper didn't initialize MEF. Does your bootstrapper extend CocktailMefBootstrapper<T>?


Posted By: mgood
Date Posted: 25-Sep-2012 at 11:12pm
And yes, something has changed. The IoC implementation in Cocktail v2 is now pluggable and CocktailMefBootstrapper<T> configures MEF to be the composition provider. That error message tells me that the composition provider didn't get configured and that can only be if your application didn't boostrap properly by possibly using the wrong base class for your bootstrapper.



Print Page | Close Window