The following is a short checklist of items to consider when trying to deploy a WCF Service to an IIS server.
These instructions are for a windows server box
- Ensure that you have the required level of .Net installed first
- Install the following roles – Application Server / Web Server and choose all the default options when prompted
- Check the ISAPI and CGI Restrictions and ensure .net framework 4.0.3 is installed and set to allowed
- If not you need to open a cmd window and go to c:\Windows\Microsoft.NET\Framework64\v4.0.30319\ and run “aspnet_regiis -i”
- My service writes to a log file. Make sure the user that runs the application pool for the website has write access to the folder where the log file will be written
If you need to set up HTTPS then do the following
- In IIS Manager on the entire server double-click Server Certificates
- Create Self Signed Certificate, give it a name
- Create a https binding on a port