installutil.exe installing windows service
I'm tring to install a windows service and keep getting the following message, can anyone help with this? TIA
C:\Program Files\My Application>installUtil.exe MyApp.exe
Microsoft (R) .NET Framework Installation utility Version 2.0.50727.42
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:\Program Files\My Application\MyApp.exe assembly's progress.
The file is located at C:\Program Files\My Application\MyApp.InstallLog.
Installing assembly 'C:\Program Files\My Application\MyApp.exe'.
Affected parameters are:
logtoconsole =
assemblyMyApph = C:\Program Files\My Application\MyApp.exe
logfile = C:\Program Files\My Application\MyApp.InstallLog
An exception occurred while trying to find the installers in the C:\Program Files\My Application\MyApp.exe assembly.
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExc
eptions property for more information.
Aborting installation for C:\Program Files\My Application\MyApp.exe.
An exception occurred during the Install phase.
System.InvalidOperationException: Unable to get installer types in the C:\Program Files\My Application\MyApp.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:\Program Files\My Application\MyApp.exe assembly's progress.
The file is located at C:\Program Files\My Application\MyApp.InstallLog.
Rolling back assembly 'C:\Program Files\My Application\MyApp.exe'.
Affected parameters are:
logtoconsole =
assemblyMyApph = C:\Program Files\My Application\MyApp.exe
logfile = C:\Program Files\My Application\MyApp.InstallLog
An exception occurred while trying to find the installers in the C:\Program Files\My Application\MyApp.exe assembly.
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExc
eptions property for more information.
Aborting installation for C:\Program Files\My Application\MyApp.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:\Program Files\My Application\MyApp.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 wil
l 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.
C:\Program Files\My Application>pause:
Press any key to continue . . .

