Fixed the IOC for windows service