Author Topic: Problems with Windows Service  (Read 5827 times)

Offline Danielhsc

  • New
  • *
  • Posts: 4
Problems with Windows Service
« on: May 15, 2009, 11:16:06 AM »
I make a windows service using C# .Net 2.0. When I tried install the service using installutil command, I received the following error message:
System.BadImageFormatException: Could not load file or assembly or one of its dependencies. The module should contain an assembly manifest.

I've used the PECompact in others applications .NET without any problems.

Offline Jeremy Collake

  • Administrator
  • Member#
  • *****
  • Posts: 5409
  • Gender: Male
  • The Lasso
    • Bitsum
Re: Problems with Windows Service
« Reply #1 on: May 18, 2009, 10:17:22 AM »
I am going to guess that this is due to installutil loading .NET EXE assembly images as if they were a DLL. However, that is only a guess at this time. Unfortunately, the method I use to compress .NET assemblies prevents proper handling of PE modules when loaded as if they were a DLL. I do not know that I will be able to fix the problem. I will put it on my todo list and look for a word-around when I get a chance, but can make no guarantees about when, or if, a resolution will be made ;(.

Software Engineer. Bitsum LLC.