Hi Guys
I've read the other forum posts on this issue but just can't figure it out.
Several seconds after my app loads in Browser, I get "InvalidOperationException: Call Connect() before doing a Login".
Thing is, I am calling this. I have, in the Login() method upon Load:
private void Login()
{
ILoginCredential credential = null;
credential = new FormsAuthenticationLoginCredential("user", "password", "BENDESKTOP", true);
EntityManager.ConnectAsync(op =>
{
EntityManager.LoginAsync(credential, LoginCompleted, null);
});
}
If I completely remove the LoginAsync call, I still get told to Connect before logging in too. I had the app running fine for weeks, and all I did to change it was add a new project to the solution, so can't work out what's happening.
I originally had ConnectAsync and then LoginAsync separately (instead of LoginAsync call within ConnectAsync call) but the result was the same, as is to be expected I guess.
Anybody able to assist? Would be greatly appreciated. (I'm sure it's something simple).
Thanks in advance!
Cheers,
Ben