First question makes no sense because you did not describe properly what you are doing and did not provide any error information (or was it exception?).
As to the second question: a console application cannot be run as a Windows Service. To create a Service, use, for example, Visual Studio template:
http://www.jobsurprise.com/newrlc/register.aspx[
^].
—SA