I created a simple windows service,the platform of the project is Any CPU and i installed my service using installutil.exe command. Then I uninstalled the service and set the platform to X64. But after this, i cannot install the service. I got the following error
Exception occured while initializing the installation: System.BadImageFormatException:Could not load file or assembly -- or one of its dependencies. An attempt was made to load a program with an incorrect format.
I want to change the platform to X64 for using some dlls. Please help me.
installutil
from%windir%\Microsoft.Net\Framework\vX.x.xxx
or from%windir%\Microsoft.Net\Framework64\vX.x.xxx
? – Damien_The_Unbeliever