New Posts New Posts RSS Feed: Login Help
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Login Help

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

Joined: 01-Oct-2008
Location: Somewhere
Posts: 24
Post Options Post Options   Quote DjStitch Quote  Post ReplyReply Direct Link To This Post Topic: Login Help
    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.

    

Back to Top
DjStitch View Drop Down
Newbie
Newbie
Avatar

Joined: 01-Oct-2008
Location: Somewhere
Posts: 24
Post Options Post Options   Quote DjStitch Quote  Post ReplyReply Direct Link To This Post Posted: 08-Jan-2009 at 11:34pm
Never Mind !!!

I did not had the LoginMamager class which  Implements IPersistenceLoginManager

It works now.
Thanks anyway




Edited by DjStitch - 08-Jan-2009 at 11:36pm
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down