access violation reading location of property "connection" in method GetVersionNumber() if var "server" hasn't been defined