Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6738645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:23:36+00:00 2026-05-26T11:23:36+00:00

When I create a new Windows Service in Visual Studio 2010, I get the

  • 0

When I create a new Windows Service in Visual Studio 2010, I get the message stating to use InstallUtil and net start to run the service.

I have tried the following steps:

  1. Create new project File -> New -> Project -> Windows Service
  2. Project Name: TestService
  3. Build project as is (Service1 constructor, OnStart, OnStop)
  4. Open command prompt, run “C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe” TestService.exe
  5. Run net start TestService.

Output of step 4

Running a transacted installation.

Beginning the Install phase of the installation.

See the contents of the log file for the
C:\Users\myusername\Documents\Visual Studio
2010\Projects\TestService\TestService\obj\x86\Debug\TestService.exe
assembly’s progress.

The file is located at C:\Users\myusername\Documents\Visual Studio
2010\Projects\Tes
tService\TestService\obj\x86\Debug\TestService.InstallLog.

Installing assembly ‘C:\Users\myusername\Documents\Visual Studio
2010\Projects\TestS ervice\TestService\obj\x86\Debug\TestService.exe’.

Affected parameters are:

logtoconsole =

logfile = C:\Users\myusername\Documents\Visual Studio
2010\Projects\TestService\T
estService\obj\x86\Debug\TestService.InstallLog

assemblypath = C:\Users\myusername\Documents\Visual Studio
2010\Projects\TestServ ice\TestService\obj\x86\Debug\TestService.exe

No public installers with the RunInstallerAttribute.Yes attribute
could be found in the C:\Users\myusername\Documents\Visual Studio
2010\Projects\TestService\TestSe rvice\obj\x86\Debug\TestService.exe
assembly.

The Install phase completed successfully, and the Commit phase is
beginning.

See the contents of the log file for the
C:\Users\myusername\Documents\Visual Studio
2010\Projects\TestService\TestService\obj\x86\Debug\TestService.exe
assembly’s progress.

The file is located at C:\Users\myusername\Documents\Visual Studio
2010\Projects\Tes
tService\TestService\obj\x86\Debug\TestService.InstallLog.

Committing assembly ‘C:\Users\myusername\Documents\Visual Studio
2010\Projects\TestS ervice\TestService\obj\x86\Debug\TestService.exe’.

Affected parameters are:

logtoconsole =

logfile = C:\Users\myusername\Documents\Visual Studio
2010\Projects\TestService\T
estService\obj\x86\Debug\TestService.InstallLog

assemblypath = C:\Users\myusername\Documents\Visual Studio
2010\Projects\TestServ ice\TestService\obj\x86\Debug\TestService.exe

No public installers with the RunInstallerAttribute.Yes attribute
could be found in the C:\Users\myusername\Documents\Visual Studio
2010\Projects\TestService\TestSe rvice\obj\x86\Debug\TestService.exe
assembly.

Remove InstallState file because there are no installers.

The Commit phase completed successfully.

The transacted install has completed.

Output of step 5

The service name is invalid.

More help is available by typing NET HELPMSG 2185.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T11:23:37+00:00Added an answer on May 26, 2026 at 11:23 am

    You need to open the Service.cs file in the designer, right click it and choose the menu-option “Add Installer”.

    It won’t install right out of the box… you need to create the installer class first.

    Some reference on service installer:

    How to: Add Installers to Your Service Application

    Quite old… but this is what I am talking about:

    Windows Services in C#: Adding the Installer (part 3)

    By doing this, a ProjectInstaller.cs will be automaticaly created. Then you can double click this, enter the designer, and configure the components:

    • serviceInstaller1 has the properties of the service itself: Description, DisplayName, ServiceName and StartType are the most important.

    • serviceProcessInstaller1 has this important property: Account that is the account in which the service will run.

    For example:

    this.serviceProcessInstaller1.Account = ServiceAccount.LocalSystem;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background In Visual Studio 2008 Create a new Windows Forms Application, this will create
In Visual Studio, two files are created when you create a new Windows Form
I have created an OData/WCF service using Visual Studio 2010 on Windows XP SP3
I running Windows XP Service Pack 3. Visual Studio 2010. C# project. I included
Well, I have created a new windows service and the install from Visual Studio.
I'm trying to install service which I created in visual studio 2008 on windows
I have created a C# web service using visual studio to stop the windows
I have developed a windows service using C# and Visual Studio 2008. I have Windows XP SP2
I've to create a windows service in .NET that polls a db table for
I am new to visual studio and I am experimenting around with some Windows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.