I did expect it to be this simple but I could not believe it would really be that way. All it takes for a WCF service to be deployed to IIS box is the following:
Navigate the browser to that http://<server>/<service>.svc and you will see the service front page. The step #4 is required for WCF to work IIS OOTB.
This works for the default option of BasicHTTPBinding and no specific endpoint or binding configuration. The point was to get it working. All the nitty-gritty stuff comes later.
- Copy .svc file into a web site folder on the server,
- Copy .dll file into a \bin subfolder in the web site,
- Copy web.config or create a new one. It has to have the endpoint configuration. The one created by default by Visual Studio 2008 simply references "localhost", which seem to be fine.
- "%windir%\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe" -r -y
Navigate the browser to that http://<server>/<service>.svc and you will see the service front page. The step #4 is required for WCF to work IIS OOTB.
This works for the default option of BasicHTTPBinding and no specific endpoint or binding configuration. The point was to get it working. All the nitty-gritty stuff comes later.
No comments:
Post a Comment