无法弄清楚为什么我在Windows服务上获得System.Reflection.ReflectionTypeLoadExceptiom

时间:2017-09-26 15:32:53

标签: c# windows-services

我正在尝试在我的某个开发服务器上安装测试服务。我运行Microsoft给出的安装程序。当我尝试安装该服务时,我完成了教程并遇到了麻烦。

Microsoft (R) .NET Framework Installation utility Version 4.6.1586.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 C:\Users\fpettigrosso\Desktop\Win-Pak card updater\CardUpdaterService\bin\Debug\CardUpdaterService.exe assembly's progress.
The file is located at C:\Users\fpettigrosso\Desktop\Win-Pak card updater\CardUpdaterService\bin\Debug\CardUpdaterService.InstallLog.
Installing assembly 'C:\Users\fpettigrosso\Desktop\Win-Pak card updater\CardUpdaterService\bin\Debug\CardUpdaterService.exe'.
Affected parameters are:
   logtoconsole =
   logfile = C:\Users\fpettigrosso\Desktop\Win-Pak card updater\CardUpdaterService\bin\Debug\CardUpdaterService.InstallLog
   assemblypath = C:\Users\fpettigrosso\Desktop\Win-Pak card updater\CardUpdaterService\bin\Debug\CardUpdaterService.exe
An exception occurred while trying to find the installers in the C:\Users\fpettigrosso\Desktop\Win-Pak card updater\CardUpdaterService\bin\Debug\CardUpdaterService.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\fpettigrosso\Desktop\Win-Pak card updater\CardUpdaterService\bin\Debug\CardUpdaterService.exe.

An exception occurred during the Install phase.
System.InvalidOperationException: Unable to get installer types in the C:\Users\fpettigrosso\Desktop\Win-Pak card updater\CardUpdaterService\bin\Debug\CardUpdaterService.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\fpettigrosso\Desktop\Win-Pak card updater\CardUpdaterService\bin\Debug\CardUpdaterService.exe assembly's progress.
The file is located at C:\Users\fpettigrosso\Desktop\Win-Pak card updater\CardUpdaterService\bin\Debug\CardUpdaterService.InstallLog.
Rolling back assembly 'C:\Users\fpettigrosso\Desktop\Win-Pak card updater\CardUpdaterService\bin\Debug\CardUpdaterService.exe'.
Affected parameters are:
   logtoconsole =
   logfile = C:\Users\fpettigrosso\Desktop\Win-Pak card updater\CardUpdaterService\bin\Debug\CardUpdaterService.InstallLog
   assemblypath = C:\Users\fpettigrosso\Desktop\Win-Pak card updater\CardUpdaterService\bin\Debug\CardUpdaterService.exe
An exception occurred while trying to find the installers in the C:\Users\fpettigrosso\Desktop\Win-Pak card updater\CardUpdaterService\bin\Debug\CardUpdaterService.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\fpettigrosso\Desktop\Win-Pak card updater\CardUpdaterService\bin\Debug\CardUpdaterService.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\fpettigrosso\Desktop\Win-Pak card updater\CardUpdaterService\bin\Debug\CardUpdaterService.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.

通过一些研究我得出结论我不知道发生了什么......我尝试了从将ddls转储到同一文件夹中以重建解决方案的所有方法。我还可以尝试做些什么来解决这个问题?

该过程使用linq

0 个答案:

没有答案