The following exception getting thrown during the login method could indicate that the msvcr71.dll file is missing from your Windows system files. This file should be in the System32 folder on 32-bit computers and in the SysWOW64 folder on 64-bit computers.
This file, msvcr71.dll supports the “Microsoft Visual C Runtime” library version 7.1 engine. This file is necessary in order for “Windows” to run applications that have been written in C++. Some applications that use this file are Microsoft Office and Microsoft Visual Studio.