I tried to compile the service .exe file as AnyCPU, x86 and x64. It works on my windows 7 x64 box. I am installing with installutil, .NET 4 version.
When I start the service, I get an error message. It does not say anything, but indicates which modules are loaded. Potential interests:
LoadedModule [0] = D: \ yellowbook \ grapevine_service \ grapevinesystemservice.exe LoadedModule 3 = C: \ Windows \ system32 \ KERNEL32.dll LoadedModule 4 = C: \ Windows \ system32 \ KERNELBASE.dll LoadedModule [9] = C: \ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ mscoreei.dll LoadedModule [17] = C: \ Windows \ Microsoft.NET \ Framework64 \ v2.0.50727 \ mscorwks.dll LoadedModule [18] = C: \ Windows \ WinSxS \ amd64_microsoft .vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4927_none_88dce9872fb18caf \ MSVCR80.dll LoadedModule [22] = C: \ Windows \ assembly \ NativeImages_v2.0.50727_64 \ mscorlib \ 9a328af23afa7ffa18afa7ffa18afa7ffa1f823ffa
I can start this service as a console application using the command line, which gives the following:
Unhandled exception: System.BadImageFormatException: it is possible not to load the file or assembly 'grapevinesystemservice.exe' or one of its dependencies. This assembly is built at runtime, but the runtime is currently loaded and cannot be loaded. File Name: 'Grapevinesystemservice.exe'
I tried to hack the registry to force the latest version. There is no effect. I looked at the installed EXE file in thoughtfulness to make sure that it did not get confused on my builds server, but it targets 4.0.30319. My local, build, and test server have 30319 as a version of .NET 4. No one had beta / RC.
, log4net ( .NET 4 ), StructureMap, NoRM (MongoDB), AutoMapper, Newtonsoft.Json DLL , .