Print Page | Close Window

Login Help

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1049
Printed Date: 28-Apr-2025 at 8:51pm


Topic: Login Help
Posted By: DjStitch
Subject: Login Help
Date Posted: 07-Jan-2009 at 3:34am
I have converted the Cabana project from C# to VB.net and getting the next error.

LoginManager is required but failed to find one.

Using this method

        Private Sub Login(ByVal pManager As PersistenceManager, ByVal pCredential As ILoginCredential)
            Dim aSessionBundle As SessionBundle = Nothing
            If pManager.IsLoggedIn Then ' Don't do it again.
                Return
            End If
            Try
                aSessionBundle = pManager.Login(pCredential)
                ConfirmConnected(pManager)
                ConfirmAuthenticated(aSessionBundle, pCredential)
            Catch ex As Exception
                LoginErrorHandler(pManager, ex)
            End Try
            ' Only get here if pManager.Login succeeded.
            SetLoggedInUser(aSessionBundle)
        End Sub

If I call this login method the pmanager is there.
Please Help me.

    




Replies:
Posted By: DjStitch
Date Posted: 08-Jan-2009 at 11:34pm
Never Mind !!!

I did not had the LoginMamager class which  Implements IPersistenceLoginManager

It works now.
Thanks anyway





Print Page | Close Window