Please make sure you have PI SDK and AF SDK installed and configured on your workstation before attempting to access PI historian