I have written a windows service in c# using ide visual studio 2012. When I tried to install it on a windows server 2003 I got this error message:
Prerequisite check for system component Microsoft .NET Framework 4.5 (x86 and x64) failed with the following error message: "Installation of the Microsoft .NET Framework 4.5 is not supported on this operating system. Contact your application vendor."
So I went back into my project and set the target framework to 4.0. I then rebuilt the solution, re-added the installer and published again. However, when I try to install I get the exact same error.
For some reason it is not detecting that I have changed the framework to 4.0. Any ideas where I have force this change or where even to look??
Extra Info: It seems to be using click-once deployment.