WCF service debugging caused by a Windows service in C #

I have a windows service that was planned using Quartz.NET . I need to debug it. Since I cannot debug the start method, I put a breakpoint in the method Execute. I compiled my solution and installed this service using installutil /i Name of the exe. Then I did Attach To ProcessVisual Studio in the Debug menu and attached an EXE to it.

When this service starts, 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.IngeoServiceReferenceis a WCF service hosted on IIS only on my machine. The debugger does not go to:

       ingeoclient.ShowIngeoData();

I tried adding aspnet_wp.exeas a process, but it says the debugger is already attached.

How can I debug this WCF service from my windows service?

+3
2

.

exe ( , DLL). JobExecutionContext Execute Console. Visual Studio WCF : . " ". " " " ".

WCF . Windows Service Execute, , , . , .

- WCF , , Windows . Windows, WCF .

+1

, IIS Visual Studio Selfhost, Windows .

0

Source: https://habr.com/ru/post/1728406/


All Articles