1
If the WCF service is in the same IIS directory as the Web publication, there are no cross-domain issues
But before you publish, change the servicereferences.clientconfig to change the WCF service address to the IP address of your published IIS (including ports)
2 Registering for IIS Aps.net
Refer to the following steps:
Open the Address c:windowsmicrosoft.netframeworkv4.0.30319 (the highest. NET version, except 4.5) on command prompt cmd (required to run with Administrator privileges).
Execute Aspnet_regiis.exe-iru.
3
Verbose error: HTTP error 404.2-not Found. The page you requested cannot be provided because of the ISAPI and CGI Restrictions list settings on the WEB server.
Presence Environment: Win7 + IIS7.0
Workaround: IIS root node, right "ISAPI and CGI restrictions", set the Forbidden Dotnet version entry to allow ~
Several workarounds are not accessible for WCF services and Web publishing