I have a windows service. In the Properties I have the platform target set as X64. In my csproj file I have changed all instances of prefer32bit to false. I am installing the service with installutil.exe when I install and run my service it runs as 32 bit. I am currently building in debug mode. What am I missing here?
You need to use the 64bit version of installutil.exe
to install for 64bit. The normal 32bit version cannot do this.
You can find it in
%WINDIR%\Microsoft.NET\Framework64\ $VERSION \InstallUtil.exe
instead of
%WINDIR%\Microsoft.NET\Framework\ $VERSION \InstallUtil.exe
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With