New Posts New Posts RSS Feed: CompositionContext ?
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

CompositionContext ?

 Post Reply Post Reply
Author
giotis View Drop Down
Groupie
Groupie
Avatar

Joined: 26-Apr-2012
Location: Greece
Posts: 53
Post Options Post Options   Quote giotis Quote  Post ReplyReply Direct Link To This Post Topic: CompositionContext ?
    Posted: 01-Nov-2012 at 8:12am
hello ,    
I have created a new application from scratch replica of TempHire
but take this error after login

The GetCompositionContext take a Guid - by self
and no the standard IbDefault

What I make wrong?

ps. All Asseblies are installed good



Zeus.Security.dll!Zeus.Security.Composition.CompositionContextResolver.GetCompositionContext(string compositionContextName = "e4cd5b25-c429-4223-8642-5d953502a57a") Line 29    C#
     IdeaBlade.Core.dll!IdeaBlade.Core.Composition.CompositionContext.GetByName(string compositionContextName = "e4cd5b25-c429-4223-8642-5d953502a57a") + 0xc8 bytes    
     IdeaBlade.EntityModel.Server.dll!IdeaBlade.EntityModel.Server.EntityServer.EntityServer(string dataSourceExtension = null, string compositionContextName = "e4cd5b25-c429-4223-8642-5d953502a57a") + 0xce bytes    
     [Native to Managed Transition]    
     mscorlib.dll!System.RuntimeType.CreateInstanceImpl(System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder = {System.DefaultBinder}, object[] args = {object[2]}, System.Globalization.CultureInfo culture, object[] activationAttributes = null, ref System.Threading.StackCrawlMark stackMark) + 0x43b bytes    
     mscorlib.dll!System.Activator.CreateInstance(System.Type type, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, object[] args, System.Globalization.CultureInfo culture, object[] activationAttributes) + 0x81 bytes    
     mscorlib.dll!System.Activator.CreateInstance(System.Type type, object[] args) + 0x14 bytes    
     IdeaBlade.EntityModel.dll!IdeaBlade.EntityModel.EntityService.GetEntityServer(string dataSourceExtension = null, string compositionContextName = "e4cd5b25-c429-4223-8642-5d953502a57a") + 0x135 bytes    
     IdeaBlade.EntityModel.dll!IdeaBlade.EntityModel.LocalEntityServerProxy.GetEntityServer() + 0xe8 bytes    
     IdeaBlade.EntityModel.dll!IdeaBlade.EntityModel.LocalEntityServerProxy.ConnectAsync() + 0x2a bytes    
     IdeaBlade.EntityModel.dll!IdeaBlade.EntityModel.Security.Authenticator.LoginCoreAsync.MoveNext() + 0x175 bytes    
     mscorlib.dll!System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<IdeaBlade.EntityModel.Security.Authenticator.LoginCoreAsync>(ref IdeaBlade.EntityModel.Security.Authenticator.LoginCoreAsync stateMachine) + 0x47 bytes    
     mscorlib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.__Canon>.Start<IdeaBlade.EntityModel.Security.Authenticator.LoginCoreAsync>(ref IdeaBlade.EntityModel.Security.Authenticator.LoginCoreAsync stateMachine) + 0xf bytes    
     IdeaBlade.EntityModel.dll!IdeaBlade.EntityModel.Security.Authenticator.LoginCoreAsync(IdeaBlade.EntityModel.ILoginCredential credential = {IdeaBlade.EntityModel.LoginCredential}, IdeaBlade.EntityModel.Security.LoginOptions options = {IdeaBlade.EntityModel.Security.LoginOptions}, System.Threading.CancellationToken cancellationToken = IsCancellationRequested = false) + 0xa1 bytes    
     IdeaBlade.EntityModel.dll!IdeaBlade.EntityModel.Security.Authenticator.LoginAsync(IdeaBlade.EntityModel.ILoginCredential credential = {IdeaBlade.EntityModel.LoginCredential}, IdeaBlade.EntityModel.Security.LoginOptions options = {IdeaBlade.EntityModel.Security.LoginOptions}, System.Threading.CancellationToken cancellationToken = IsCancellationRequested = false) + 0x33 bytes    
     Cocktail.dll!Cocktail.AuthenticationService.LoginAsync.MoveNext() + 0x1a1 bytes    
     mscorlib.dll!System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<Cocktail.AuthenticationService.LoginAsync>(ref Cocktail.AuthenticationService.LoginAsync stateMachine) + 0x47 bytes    
     mscorlib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Cocktail.AuthenticationService.LoginAsync>(ref Cocktail.AuthenticationService.LoginAsync stateMachine) + 0x11 bytes    
     Cocktail.dll!Cocktail.AuthenticationService.LoginAsync(IdeaBlade.EntityModel.ILoginCredential credential = {IdeaBlade.EntityModel.LoginCredential}, System.Threading.CancellationToken cancellationToken = IsCancellationRequested = false) + 0x8e bytes    
     Cocktail.dll!Cocktail.AuthenticationService.LoginAsync(IdeaBlade.EntityModel.ILoginCredential credential = {IdeaBlade.EntityModel.LoginCredential}) + 0x4f bytes    
>    Zeus.exe!Zeus.ViewModels.Login.LoginViewModel.Login() Line 117 + 0x14 bytes    C#



Edited by giotis - 01-Nov-2012 at 8:58am
Back to Top
giotis View Drop Down
Groupie
Groupie
Avatar

Joined: 26-Apr-2012
Location: Greece
Posts: 53
Post Options Post Options   Quote giotis Quote  Post ReplyReply Direct Link To This Post Posted: 01-Nov-2012 at 8:56am
before login the authenticationService.ConnectionOptions.CompositionContext is null

and the authenticationService.ConnectionOptions.compositionContextName    have the same Guid
with CompositionContextResolver.GetCompositionContext(...


DEBUGING
-        _authenticationService    {Zeus.Authentication.ZeusAuthenticationService}    Cocktail.IAuthenticationService {Zeus.Authentication.ZeusAuthenticationService}
+        [Zeus.Authentication.ZeusAuthenticationService]    {Zeus.Authentication.ZeusAuthenticationService}    Zeus.Authentication.ZeusAuthenticationService
+        AuthenticationContext    {Zeus.Authentication.ZeusAuthenticationService}    IdeaBlade.EntityModel.Security.IAuthenticationContext {Zeus.Authentication.ZeusAuthenticationService}
-        ConnectionOptions    {Cocktail.ConnectionOptions}    Cocktail.ConnectionOptions
        _compositionContextName    "f0b68bed-f401-460c-b90b-2732a7e46174"    string
        _name    "Default"    string
+        CompositionContext    '(this._authenticationService).ConnectionOptions.CompositionContext' threw an exception of type 'System.Collections.Generic.KeyNotFoundException'    IdeaBlade.Core.Composition.CompositionContext {System.Collections.Generic.KeyNotFoundException}
        DataSourceExtension    null    string
        EntityServiceOption    UseDefaultService    IdeaBlade.EntityModel.EntityServiceOption
        IsDesignTime    false    bool
+        IsFake    '(this._authenticationService).ConnectionOptions.IsFake' threw an exception of type 'System.Collections.Generic.KeyNotFoundException'    bool {System.Collections.Generic.KeyNotFoundException}
        Name    "Default"    string
        ServiceKey    null    string
        ShouldConnect    true    bool
+        Static members        
        IsLoggedIn    false    bool
        Principal    null    System.Security.Principal.IPrincipal

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: 02-Nov-2012 at 12:32pm
See this thread. You most likely still have the demo stuff in there.

http://www.ideablade.com/forum/forum_posts.asp?TID=3713&KW=compositioncontext&PID=14841&title=authentication-and-co#14841
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down