I have a Windows service that has been scheduled using Quartz.NET. I have to debug it. As I cannot debug the start method, I put a breakpoint on the Execute
method. I compiled my solution and installed this service using installutil /i Name of the exe
. Then I did Attach To Process
from the Debug menu of Visual Studio and attached that EXE.
When that service runs, it stops at that breakpoint. The code is as follows
using OA.FileProcessing.WinService.IngeoServiceReference;
public virtual void Execute(JobExecutionContext context)
{
IngeoClient ingeoclient = new IngeoClient();
ingeoclient.ShowIngeoData();
ingeoclient.UpdateIngeoData();
}
OA.FileProcessing.WinService.IngeoServiceReference
is a WCF service hosted on IIS on my machine only. The debugger does not step into:
ingeoclient.ShowIngeoData();
I tried adding aspnet_wp.exe
as a process but it says a debugger is already attached.
How can I debug this WCF service from my Windows service?