WCF recent study, found that the site will not work properly when placed WCF service on IIS, from online search:
Solution, an administrator into the command line, run:
"%windir%\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe" -r -y
==============================================================
-r - to re-install this version of Windows Communication Foundation,
IIS Metabase and update the script maps at the root and the root of all the following
Script mappings. Whatever the original version is that all existing script maps
Upgrade to this version.
-y - does not require confirmation before uninstall or reinstall component.
==============================================================
But this is 3.0, I can only find the path to see the 4.0, but also given:
==============================================================
C:\Windows\system32>"C:\Windows\Microsoft.NET\Framework\v4.0.30319\ServiceModelReg.exe" -r
Microsoft (R) WCF / WF Registration Tool version 4.5.0.0
Copyright (C) Microsoft Corporation. all rights reserved.
For managing the installation and uninstallation management utility on one computer and WF WCF components.
[Error] this version of Windows does not support this tool. Administrators should be changed to use the "Turn Windows Features" dialog box or dism command-line tool to install / uninstall Windows Communication Foundation function.
==============================================================
When prompted, go to Control Panel -> Programs -> Enable or disable Windows features, as shown below, will need to check on the WCF service just fine.
If you are not careful before you try the 3.0 command (I am ...), then:
"%windir%\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe" –ua
Uninstall just fine.
My system environment is: Windows 8 Pro + IIS 8.0 + .NET 4.5, other people to solve it according to their actual situation.
Transfer from https://www.cnblogs.com/xwgli/archive/2013/03/15/2961022.html