A preliminary exploration of Windows Service application

Source: Internet
Author: User

Today wrote a Windows service program, itself this program is a console application, but not able to run directly through F5, the following image shows the error:

It is suggested that a Instalutil.exe program needs to be installed to search the program online, which is a self-contained tool in the NET Framework.

1, open run input cmd, press ENTER, enter CD C:\Windows\Microsoft.NET\Framework\v4.0.30319, carriage return, and then enter InstallUtil.exe run the program, after running there will be some introduction

2. Enter the program service path that you want to install after entering InstallUtil, including the full name of the program, such as: F:\flight\blanceService\blanceService.exe carriage return

Attached to me after running:

At this point, execute the cmd command at the exe folder where the program is located.

The program will be run. You can see this program in Program Manager.

A preliminary exploration of Windows Service application

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.