C service on a windows platform Link Error

I am trying to run a C service on a Windows environment. When I run my IS as an application from a command line window, the C service works fine. However, if I run IS as a windows service I get a Link Error. Can someone please help me figure out what could be wrong or if there are certain config params I need to set to avoid this. Your help is appreciated.