Debugging a Web Service at the Server

To debug a Web Service that resides on a machine that has Visual Studio .NET installed, you have two options—start the application or, if it has been started already, attach to the process executing the Web Service.

To start the Web Service from within Visual Studio .NET, you first have to make sure that the aspnet_wp.exe process has not been loaded. The surest way to do this is to open a command prompt and type iisreset. This stops and restarts IIS and any related applications. Then, in the Solution Explorer pane, right-click the asmx file you want to debug and select the Set as Start Page item from the pop-up menu. Then, go to the Debug menu and select Start. If the ASP .NET-generated Web pages allow you ...

Get Creating and Consuming Web Services in Visual Basic® 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.