Как мы можем создать сервис windows / WCF для запуска WEB API Channel для OSCOVA Bot - PullRequest
0 голосов
/ 27 февраля 2020

Я пытаюсь создать службу OSCOVA Bot на базе windows, используя каналы Syn.Bot и Syn.Bot. Я пытаюсь найти некоторые учебники или ссылки по inte rnet, которые могут мне помочь. В настоящее время я сталкиваюсь с рядом проблем. Как пакеты имеют проблемы совместимости.

При установке службы журнал ошибок сообщает:

Microsoft (R) .NET Framework Installation utility Version 4.8.3761.0
Copyright (C) Microsoft Corporation.  All rights reserved.


Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the D:\IntallService\Service\SIMLWinServices.exe assembly's 
progress.
The file is located at D:\IntallService\Service\SIMLWinServices.InstallLog.
Installing assembly 'D:\IntallService\Service\SIMLWinServices.exe'.
Affected parameters are:
logtoconsole =
assemblypath = D:\IntallService\Service\SIMLWinServices.exe
logfile = D:\IntallService\Service\SIMLWinServices.InstallLog
Installing service Service1...
Creating EventLog source Service1 in log Application...

An exception occurred during the Install phase.
System.InvalidOperationException: Cannot open Service Control Manager on computer '.'. This operation 
might require other privileges.
The inner exception System.ComponentModel.Win32Exception was thrown with the following error message: 
Access is denied.

The Rollback phase of the installation is beginning.
See the contents of the log file for the D:\IntallService\Service\SIMLWinServices.exe assembly's 
progress.
The file is located at D:\IntallService\Service\SIMLWinServices.InstallLog.
Rolling back assembly 'D:\IntallService\Service\SIMLWinServices.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = D:\IntallService\Service\SIMLWinServices.exe
   logfile = D:\IntallService\Service\SIMLWinServices.InstallLog
Restoring event log to previous state for source Service1.

The Rollback phase completed successfully.

The transacted install has completed.
The installation failed, and the rollback has been performed.

1 Ответ

1 голос
/ 02 марта 2020

Во время установки служб Windows NT нам нужно запустить средство управления системой или получить доступ к определенной папке c, для этого требуется повышение привилегий выполнения.
Я считаю, что ошибка связана с недостаточными правами во время установка. Поэтому я предлагаю вам запустить командную строку от имени администратора, вы можете попробовать встроенную CMD, предоставляемую Visual Studio.
enter image description here
Кроме того, пожалуйста, обратитесь к ссылке ниже, wi sh это полезно для вас.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/4bbeae09-d512-4728-b369-0c540d1625a4/cannot-open-service-control-manager-on-computer-this-operation-might-require-other-privileges?forum=netfxbcl
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/1c0bc374-c03f-4a46-9e53-d0b4c57b7d50/cannot-open-service-control-manager-on-computer-this-operation-might-require-other-privileges?forum=projectprofessional2010general
Не стесняйтесь сообщить мне, если проблема все еще существует.

...