Thread: Using System.ServiceProcess in console application

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    1,579

    Using System.ServiceProcess in console application

    Hello everyone,


    I want to use System.ServiceProcess in a console based application -- other than Windows Service application. But when add statement like -- "using System.ServiceProcess", there is compile error like,

    error CS0234: The type or namespace name 'ServiceProcess' does not exist in the namespace 'System' (are you missing an assembly reference?)

    Does anyone know the root cause and how to solve it? :-)


    thanks in advance,
    George

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    (are you missing an assembly reference?)
    A perfectly clear compiler message and George2... how else would that end. How about listening to your compiler ? Are you missing an assembly reference ? Yes, you are. Go fix it.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. simple snmp console application.
    By csteinsv in forum C++ Programming
    Replies: 0
    Last Post: 06-01-2009, 05:03 PM
  2. Subject:How to create a C# console application?
    By Adock in forum C# Programming
    Replies: 5
    Last Post: 09-03-2008, 05:58 PM
  3. Adding interface to Win32 console application
    By motiz in forum Windows Programming
    Replies: 5
    Last Post: 01-03-2008, 03:17 AM
  4. Running a console application
    By maxorator in forum C++ Programming
    Replies: 4
    Last Post: 10-03-2005, 04:23 AM
  5. Console Application
    By Mont_Blanc in forum C++ Programming
    Replies: 3
    Last Post: 04-17-2004, 03:07 AM