- C Windows Service Installutil Exe
- C Windows Service Installutil Free
- Installutil Service Name
- C# Windows Service Example
Active1 year, 3 months ago
I have WCF service to be installed on windows.
Now I want to install it on a sever running windows and has installed v3.5 .net framework.
To install or uninstall windows service (which was created using.NET Framework) use utility InstallUtil.exe. This tool can be found in the following path (use appropriate framework version number). This tool can be found in the following path (use appropriate framework version number).
It is beside the point that the service has been written in framework 4 and therefor it will not run.
My question is Can I use 'installutil' from framework 3.5 to install service and why?
UPDATED
I have windows service that is running wcf inside.
cpoDesign
C Windows Service Installutil Exe
cpoDesignC Windows Service Installutil Free
cpoDesign5,2091111 gold badges4848 silver badges8989 bronze badges
3 Answers
You use InstallUtil to install a Windows Service. Your WCF Service could have been developed inside a Windows Service if you followed something like the following MSDN article How to: Host a WCF Service in a Managed Windows Service.
However if the (Windows) Service is written in .NET 4 and you try to run installutil from .net 3.5 you will get the following error:
Exception occurred while initializing the installation: System.BadImageFormatException: Could not load file or assembly 'file:///C:MyService.exe' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
To install a .NET 4 (Windows) service you will need to use the .NET 4 installutil which will be available in: C:WindowsMicrosoft.NETFramework64v4.0.30319installutil.exe once you have .NET 4 installed.
mundeepmundeep
2,65211 gold badge1818 silver badges2424 bronze badges
Archicad 10 download. installutil is used to install the windows service not the wcf service
AdilAdil130k2020 gold badges178178 silver badges189189 bronze badges
If you have control over building the service, just change it to target the .NET 3.5 framework and you should be able to install it.
Otherwise, if the service was built to target the .NET framework 4.0 and the server only has .NET 3.5 installed, I don't think it will run unless you explicitly override it in a config file to run under .NET 3.5 (which I wouldn't recommend).
As an aside, I always recommend that people use the WiX Toolset to write installers for Windows services, instead of using InstallUtil, because InstallUtil is a custom, non-standard Visual Studio tool to install windows services, whereas Windows Installer (MSI), the approved standard for windows installations has built-in support for installing Windows services that is tried-and-tested, and gives you more control, e.g. stopping and starting services etc.
Installutil Service Name
rikoerikoe