New Posts New Posts RSS Feed: Cocktail 2012 Authentication.Login
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Cocktail 2012 Authentication.Login

 Post Reply Post Reply
Author
halloweenx8 View Drop Down
Newbie
Newbie
Avatar

Joined: 07-Sep-2012
Location: Longueuil, QC
Posts: 36
Post Options Post Options   Quote halloweenx8 Quote  Post ReplyReply Direct Link To This Post Topic: Cocktail 2012 Authentication.Login
    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.”
Back to Top
mgood View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 18-Nov-2010
Location: Emeryville, CA
Posts: 583
Post Options Post Options   Quote mgood Quote  Post ReplyReply Direct Link To This Post Posted: 25-Sep-2012 at 11:09pm
This looks like your bootstrapper didn't initialize MEF. Does your bootstrapper extend CocktailMefBootstrapper<T>?
Back to Top
mgood View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 18-Nov-2010
Location: Emeryville, CA
Posts: 583
Post Options Post Options   Quote mgood Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down