I've built a windows service code with Framework Verison 4.0, when I sent my service.exe for instllation at different machine which has version 2.0 installed it gave error:
"Exception occurred while initializing installation:
System.BadImageFormatException: couls not load file or assembly '\service.exe' or one of its dependencies. This assembly is built by a runtime newer than currently loaded runtime and cannot be loaded"
How can I build a service which is backward compatible in visual studio