News:

NOTICE: This forum is mostly an archive, though new posts are allowed. Registration may require manual admin activation. After registering visit https://bitsum.com/contact/ to request account activation.

Main Menu

Problems with Windows Service

Started by Danielhsc, May 15, 2009, 11:16:06 AM

Previous topic - Next topic

Danielhsc

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.

Jeremy Collake

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.