I`m writing c# win service which can monitor sybase replication server and using 3rd party library for this. First I wrote simple console app which just connect to the server and execute some command - everything work fine, then I create win service with the same code and it fall down with error on start.
Service cannot be started. System.BadImageFormatException: Could not load file or assembly 'ASEClientCT.dll' or one of its dependencies. is not a valid Win32 application.
I don`t understand why its can happen. Any help, pls.