To host the WCF service, follow the below steps:
Make sure firewall on the hosted machine is OFF.
- Add virtual directory in "IIS Manager"
- PC Name -> Sites -> Default Web Site -> Add virtual directory
- Type in the alias (name) and browse to the physical path (where .svc file resides).
- Right click on the added application, select "Convert to application".
- Test the hosted application by clicking the "Browse button".
Possible issues:
- HTTP Error 404.3 - Not Found The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.
Solution:
Turn on/off windows features: Make sure that the below features are turned on:
- If you can't access WCF service hosted on IIS remotely but can access it locally
Make sure firewall on the hosted machine is OFF.