Book Image

WCF Multi-layer Services Development with Entity Framework - Fourth Edition

By : Mike Liu
Book Image

WCF Multi-layer Services Development with Entity Framework - Fourth Edition

By: Mike Liu

Overview of this book

Table of Contents (20 chapters)
WCF Multi-layer Services Development with Entity Framework Fourth Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
2
Hosting the HelloWorld WCF Service
Index

Debugging a WCF service from a client application


Now that we have a fully working WCF service, let's have a look at the debugging options of this service. We will use our original client, HelloWorldClient, to discuss the debugging options; so, in the following sections, whenever you come across terms such as client, the client program, or the client application, refer to HelloWorldClient.

The first and the most common scenario is to start a client program in the debug mode and then step into our WCF service. Next, we will try this option to debug the service.

Starting the debugging process

Follow these steps to start the debugging process from the client application:

  1. Start Visual Studio as an administrator and open the HelloWorld solution.

  2. Change the client program's configuration file to call HelloWorldService hosted within IIS Express. Open the App.config file inside the HelloWorldClient project and set the address of the endpoint to http://localhost:55859/HostExpressServer/HelloWorldService...