Search code examples
c#windows-servicesrelease

C# windows service installs on debug not on release


I have a custom built windows service that uses a custom library that my team has built. It runs and installs fine in debug mode, but when I install it on release mode, I get the error "Unable to get installer types in WindowsService.exe assembly"

Any thoughts? I am installing it via installutil in cmd prompt


Solution

  • SO the way I solved this, which might be a cop out, was to compile both the dll it uses and the windows service in release mode with platform of any CPU. Was trying to keep both in x64, was not working.