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 . . .

installutil.exe installing windows service
Ben-TSK
My issue was resolved, and installutil was not the problem. We were using Crystal Reports and there were some issues with the merge modules that I was unaware of. One of the other developers at my company is the Crystal expert, so I'm not even sure what he did to get it to work, but I do know that I had to make the merge modules part of the project output, and then it worked. Sorry I couldn't be more help to you.
Gary
Asim Zeeshan
I just ran into the same problem using Visual Studio 2005. An executable that had been installing just fine for months started failing today.
I verified that the installer was showing up in the disassembly and tried everything else I could think of, including rebuilding the application.
Strangely, the install worked only after I rebuilt the entire solution, which includes 20 dlls in addition to the executable.
Weird.
Den
raviparthan
I'm getting the same error and yes, I have all the dependencies in the same folder as the service. On my VPC development environment and my laptop the install works fine, but when the client tries to install they are getting this error. I have tested it on another laptop that has never been used for development, and I was able to reproduce the error. Any ideas
Thanks,
Gary
Ruud van der Werf
I searched my computer for all instances of installutill.exe and found four. Two were under x86 directories and two under x64. The result when using all of them are the same.
An exception occurred during the Install phase.
System.Security.SecurityException: The source was not found, but some or all eve
nt logs could not be searched. Inaccessible logs: Security.
When I did the search two installutill.exe.config.xml's also were found. Would it be possible to modify those to get around this issue
tasleemarif
QuantumMischief
Jan Byvaly
Sledgehammer
You're running into 'standard user'. I'm guessing that you may be running under an account that is a member of the local admin group, but with Vista UAC enabled even admins run as standard user until they run an application that makes a explicit admin request - at which point you typically get a admin elevation prompt. InstallUtil.exe isn't marked as explicitly requiring admin so this is failing.
Either create a cmd script that runs InstallUtil youService.exe and set the script to require admin or do a 'runas /user:Administrator cmd.exe' and run InstallUtil from there.
Matthew Langley
Joel Martinez
Jeffyoung1234
I'm not using CrystalReports and I am having this problem. I'm practicing writting services for Vista and am cannot install the service. It's a .NET project which is a windows service. When I first tried to debug it I received an error message saying that I had to use installutil.exe and then start the project from net start. I learned about installutil and created an Installer class in my project. When I try to install I run as admin (which I detest), but recieve the error that installutil can't access the EventLog.
An exception occurred during the Install phase.
System.Security.SecurityException: The source was not found, but some or all eve
nt logs could not be searched. Inaccessible logs: Security.
Gurpreet Singh Gill