I have a .net console application written in c# which does exactly what it should when run inside visual studio and when clicking the .exe file in the file system. It runs like
You should grant to the specified user access to COM automation factory: