Hosting WCF Services in Internet Information Services

Host applications for WCF services can be of different kinds. Other than the ASP.NET Development Server, you can host services inside managed applications, Windows services, and Internet Information Services as well. In most cases the need will be to deploy to IIS so we will cover this scenario. To host your WCF service in IIS on your development machine, follow these steps:

1. Restart Visual Studio 2010 under administrator privileges.

2. Go to the My Project designer for the WCF service project and select the Web tab.

3. Check the Use Local IIS Web Server option and specify, if required, a different directory; then rerun the WCF service (see Figure 41.6).

Figure 41.6 Setting IIS as the ...

Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.