The reason this doesn't work is because the app is running as a service. Running it from the .exe works.