Note that there are some explanatory texts on larger screens.

plurals
  1. POInstallUtil fails on installing custom Windows Service
    primarykey
    data
    text
    <p>I'm busy writing a custom Windows Services to handle MSMQ messages on a server, but the installation (using InstallUtil) keeps failing with the following error:</p> <blockquote> <p>"System.InvalidOperationException: Unable to get installer types in the 'x'.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."</p> </blockquote> <p>I am using 3 of my own assemblies in the service. All of them are set to 'Copy Local' and all other referenced assemblies are in the GAC. I have verified that all other referenced assemblies not in the GAC are in the the folder containing my services' .exe file.</p> <p>I have also tried signing my assemblies (if that is worth anything...)</p> <p>I have also looked around on Google, but in most cases the problem was either solved via a service pack, or installation of some proprietary software, which obviously solved the missing dependency issue.</p> <p>I wrote a simple POC service, without referencing any 'outside' assemblies which worked fine...</p> <p>I'm developing and testing on a Windows 7 machine.</p> <p>Any ideas? Thanks!</p> <p><strong>EDIT:</strong> Ok weird... I was using PostSharp for exception handling and logging... I removed the references to PostSharp and my aspects, and it installed with no problem... o_O Is there any reason why something like PostSharp will not play well with Windows Services? </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload