C # Developing Windows Services Services--a workaround for service installation failures

Source: Internet
Author: User

Issue 1: "System.Security.SecurityException: The source was not found, but some or all of the event logs could not be searched." Inaccessible logs: Security. ”

The transaction installation is running.

The installation phase of the installation is beginning.

View the contents of the log file to obtain ... \bin\debug\service2.exe the progress of the Assembly.

The file is located in ... \bin\debug\service2.installlog.

An exception occurred during the install phase.

System.Security.SecurityException: The source was not found, but some or all of the event logs could not be searched. Inaccessible logs: Security.

The rollback phase of the installation is starting.

View the contents of the log file to obtain ... \bin\debug\service2.exe the progress of the Assembly.

The file is located in ... \bin\debug\service2.installlog.

The rollback phase has completed successfully.

The transaction installation has completed.

Workaround 1:

ServiceProcessInstaller1 in the account attribute, set to LocalSystem

Workaround 2:

Write the installed command as a bat file, and note the path, right-click, "Run as Administrator" (more than now in the Win7 system)

C # Developing Windows Services Services--a workaround for service installation failures

Related Article

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.