I have the following problem:
My service can not be installed, neither InstallUtil.exe still on the console with "SC create" service name ".
The error message reads:
When initializing the installation an exception occurred:
System.BadImageFormatException: The file or assembly 'file : C: \tracker\AVTTracker.exe "or one of its dependencies was not found.
The assembly is built by a runtime that is newer than the currently loaded runtime
and can not be loaded.
Environment: Win7 64bit, Visual Studio 2010, Framework 4.0, the service is compiled for x86 CPU.
(But I have also tried the Varinaten 'any' and 'x64' - without success.)
I get the message every time I compile with the Service Framework 4.0!
A test service from me is almost nonfunctional, there are no references or dependencies. The service create a file with only one line of text, and then ends.
This Test Service can also not install with Framework 4.0.
With Framework 3.5 it works.
and... i would like to use the Thraeding.tasks.task class - wich only supportet in Framework 4.0.
Do anybody know what´s the problem?
Thanks in advance