Bitsum Community Forum

General Category => PECompact, PESuite, PEBundle, and other developer tools => Topic started by: Danielhsc on May 15, 2009, 11:16:06 AM

Title: Problems with Windows Service
Post by: Danielhsc on May 15, 2009, 11:16:06 AM
Hi!
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.
Title: Re: Problems with Windows Service
Post by: Jeremy Collake 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 ;(.