The code used the wrong version string. Instead of using the server version string, it used the service version string.