Fixing bug and adding logging.

Fixing a bug where the Microsoft service location code was unable to
find string resources.