The latest version of Quantify (7.2.1088.170) has breaking changes with logging in. Previously a line was needed to load the principal for the user, which is no longer needed. The sample projects have been updated to reflect this change. Sample code for logging in is below.
VB
’ Clear principal cache by logging out
AvontusPrincipal.Logout()
' This is no longer needed
' AvontusPrincipal.LoadPrincipal("username")
Try
Dim success As Boolean = AvontusPrincipal.Login("username", "yourpassword")
If success Then
Console.WriteLine("Login successful")
Else
Console.WriteLine("Login failed")
Console.WriteLine("Press any key to continue...")
Console.ReadLine()
Return
End If
Catch ex As Exception
Console.WriteLine("Error logging in: " + ex.Message)
Console.WriteLine("Press any key to continue...")
Console.ReadLine()
End Try
AvontusPrincipal.Logout();
// *** Load principal is no longer needed ***
// AvontusPrincipal.LoadPrincipal("username");
bool success = AvontusPrincipal.Login("username", "yourpassword");
if (success)
Console.WriteLine("Login successful");
else
{
Console.WriteLine("Login failed");
Console.WriteLine("Press any key to continue...");
Console.ReadLine();
return;
}