I had same problem while trying to login. Sometime it succeeded magically but most of times it raise Catastrophic failure
exception. This approach worked for me:
1- run regedit as administrator
2- Find and delete 2 lbs directories
3- If the logo is installed on the server, go to the network (especially from the map) register.bat run the file as administrator, if it gives an error, make all the register records successfully so that you don't get an error, then run the logo first. This is really important
4- Run sys as administrator and renew license
5- Check if the user is fully authorized with lobject
in sys
6- Try to connect with object again.
Login Example:
var UnityApp = new UnityObjects.UnityApplication();
UnityApp.LGSetup(@"Z:\", @"Z:\", 1, 1);
UnityApp.Disconnect();
if (!UnityApp.Login("myUsername", "myPassword", 1))
{
var message = UnityApp.GetLastErrorString();
MessageBox.Show(
"Login Failed" +
Environment.NewLine +
message);
return;
}
else
MessageBox.Show("Login Succeeded");
I mapped logo path to drive Z. So your path should be different.
You can refer to LGSetup Documents and Login Documents