Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 557991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:05:06+00:00 2026-05-13T12:05:06+00:00

I have a Windows service that has been scheduled using Quartz.NET . I have

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T12:05:06+00:00Added an answer on May 13, 2026 at 12:05 pm

    There are a couple ways you could do this.

    One way would be that I would create a console application project, and reference the exe of the service project(same way you would reference a DLL). Create a mock JobExecutionContext and call Execute from the Console application. Configure Visual Studio to startup both the WCF service and the mock Console Application:
    In Solution Explorer, right-click the solution name. Click Set Startup Projects. In the Solution Properties dialog box, select Multiple Startup Projects.

    This will startup both the console mode application and the WCF application in debug mode. The console application calls into the Windows Service Execute method, which in turn calls your Service. Since everything is being run in debug mode you should have no problem with breakpoints.

    The other option is to set the WCF service as a startup project, run it from visual studio in debug mode, and then configure your Windows Service to connect to it. With this method you will not be able to step through the Windows Service, but your breakpoints in the WCF service should work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a Quartz.Net installation running as a Windows Service. That's running fine. We
We have a windows service that has been happily running in production for over
I have a windows service that has been running. I have created a new
I have a windows service that I have been writing in Vb.Net. As part
I have a windows service that has it's name set by an app.config. I
I have a VB.NET Windows Service that I wrote and it works fine. In
I have a very simple windows Service that is developed in vb.net 2008. When
I have a Windows service that has a number of threads that all need
We have taken over some .NET 1.1 Windows Service code that spawns threads to
I have a .NET windows service that is calling cdb.exe to analyze crash dumps.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.