无法安装Windows服务应用程序-System.Reflection.ReflectionTypeLoadException

时间:2018-08-15 00:45:17

标签: windows service installation

我正在尝试安装在SenseIT的Windows Media Center中运行的旧应用程序服务,该服务称为“ MyTV”。这是一个过时的项目,自2000年代中期以来就没有进行过,尽管我每天都在电视收藏中使用它。

随着最新的Windows 10更新的推出,发生了一些事情,影响了安装此服务的先决条件,并在Media Center上做了很多工作。它完全重置了我的媒体中心,迫使我重新安装所有插件。除MyTV之外,其他一切正常。我将服务安装以管理员模式安装到Visual Studio开发人员命令提示符下,以尝试强制安装它,这是我得到的错误:

    Beginning the Install phase of the installation. See the contents of the log
 file for the C:\Program Files\senseIT\myTV\mytvservice.exe assembly's progress.
 The file is located at C:\Program Files\senseIT\myTV\mytvservice.InstallLog.
 Installing assembly 'C:\Program Files\senseIT\myTV\mytvservice.exe'. Affected
 parameters are:    logtoconsole =    logfile =
 C:\Users\khenz\AppData\Local\Temp\mytvservice.InstallLog    assemblypath =
 C:\Program Files\senseIT\myTV\mytvservice.exe An exception occurred while 
trying to find the installers in the C:\Program
 Files\senseIT\myTV\mytvservice.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:\Program
 Files\senseIT\myTV\mytvservice.exe.

我完全理解,此服务需要系统上的某些内容来完成不存在的服务安装,因此会产生回滚。我无法抛出/查看system.Reflection.ReflectionTypeLoadException,因为我显然缺少该项目的源代码,因为它仅作为编译的解决方案存在。

话虽如此,是否有任何技巧可以帮助我了解安装过程中正在寻找的服务,以便我可以尝试将其还原以重新安装此服务?

非常感谢!

0 个答案:

没有答案