Hosting the WCF service in IIS

In the previous chapter, we hosted NorthwindService in IIS. Since we will change the service settings in this chapter to support distributed transaction, we need to create a different IIS application for the service.

Just open IIS manager, add a new DistNorthwindService application, and set its physical path to C:\SOAwithWCFandEF\Projects\DistNorthwind\NorthwindService. Choose the application pool, NorthwindAppPool, which was created in the last chapter, as this service's application pool.

Now, you have finished setting up the service to be hosted in IIS. Open Internet Explorer, go to http://localhost/DistNorthwindService/ProductService.svc, and you should see the ProductService description in the browser.

Get WCF Multi-layer Services Development with Entity Framework Fourth Edition 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.