Cannot serve WCF services in IIS on Windows 8

后端 未结 6 1458
不知归路
不知归路 2020-11-29 15:52

When I try to serve a WCF service on IIS in a Windows 8 machine, I get the well known error

The page you are requesting cannot be served because of th

6条回答
  •  一整个雨季
    2020-11-29 16:36

    Seemed to be a no brainer; the WCF service should be enabled using Programs and Features -> Turn Windows features on or off in the Control Panel. Go to .NET Framework Advanced Services -> WCF Services and enable HTTP Activation as described in this blog post on mdsn.

    From the command prompt (as admin), you can run:

    C:\> DISM /Online /Enable-Feature /FeatureName:WCF-HTTP-Activation
    C:\> DISM /Online /Enable-Feature /FeatureName:WCF-HTTP-Activation45
    

    If you get an error then use the below

    C:\> DISM /Online /Enable-Feature /all /FeatureName:WCF-HTTP-Activation
    C:\> DISM /Online /Enable-Feature /all /FeatureName:WCF-HTTP-Activation45
    

提交回复
热议问题