Установка windows сервисный сбой - PullRequest
0 голосов
/ 05 марта 2020

Я устанавливаю программное обеспечение. NET Framework как сервис windows, используя installutil.exe, но сталкиваюсь со следующей ошибкой

An exception occurred during the Install phase.
System.InvalidOperationException: Unable to get installer types in the C:\Users\user\source\repo\mySw\core\bin\Debug\mySw.exe assembly.
The inner exception System.Reflection.ReflectionTypeLoadException was thrown with the following error message: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information..

The Rollback phase of the installation is beginning.
See the contents of the log file for the C:\Users\user\source\repo\mySw\core\bin\Debug\mySw.exe assembly's progress.
The file is located at C:\Users\user\source\repo\mySw\core\bin\Debug\core.InstallLog.
Rolling back assembly 'C:\Users\user\source\repo\mySw\core\bin\Debug\mySw.exe'.
Affected parameters are:
   logtoconsole =
   logfile = C:\Users\user\source\repo\mySw\core\bin\Debug\core.InstallLog
   assemblypath = C:\Users\user\source\repo\mySw\core\bin\Debug\mySw.exe
An exception occurred while trying to find the installers in the C:\Users\user\source\repo\mySw\core\bin\Debug\mySw.exe assembly.
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
Aborting installation for C:\Users\user\source\repo\mySw\core\bin\Debug\mySw.exe.
An exception occurred during the Rollback phase of the System.Configuration.Install.AssemblyInstaller installer.
System.InvalidOperationException: Unable to get installer types in the C:\Users\user\source\repo\mySw\core\bin\Debug\mySw.exe assembly.
The inner exception System.Reflection.ReflectionTypeLoadException was thrown with the following error message: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information..
An exception occurred during the Rollback phase of the installation. This exception will be ignored and the rollback will continue. However, the machine might not fully revert to its initial state after the rollback is complete.

The Rollback phase completed successfully.

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

Проблема заключается в том, что библиотеки ссылок сгруппированы в другой каталог исполняемого файла. Если я перемещу зависимости в каталог exe-файла, установка будет работать нормально.

Есть ли способ предоставить ссылку на каталог dll, чтобы можно было поддерживать текущую папку каталога?

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...