Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Windows Service doubt

Windows Service doubt

Scheduled Pinned Locked Moved ASP.NET
sysadmindebugginghelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Krazy Programmer
    wrote on last edited by
    #1

    hi, I need to write a background working app which can be installed on server (shared Server) So here some one suggested to write a windows service for this . I have written the coding in the start function of Service1.cs I have written protected override void OnStart(string[] args) { ThreadStart Thstart = new ThreadStart(startfunction); mytheread = new Thread(Thstart); mytheread.Start(); // TODO: Add code here to start your service. } but when i debug it its not getting executed .. i have the start function definition .. I have scour the web but was not able to find a proper solution. Please help me in this thanks

    If You win You need not Explain............ But If You Loose You Should not be there to Explain......

    K 1 Reply Last reply
    0
    • K Krazy Programmer

      hi, I need to write a background working app which can be installed on server (shared Server) So here some one suggested to write a windows service for this . I have written the coding in the start function of Service1.cs I have written protected override void OnStart(string[] args) { ThreadStart Thstart = new ThreadStart(startfunction); mytheread = new Thread(Thstart); mytheread.Start(); // TODO: Add code here to start your service. } but when i debug it its not getting executed .. i have the start function definition .. I have scour the web but was not able to find a proper solution. Please help me in this thanks

      If You win You need not Explain............ But If You Loose You Should not be there to Explain......

      K Offline
      K Offline
      Kapil Thakur
      wrote on last edited by
      #2

      install the service in your system. start the service. Click the "Tools" tab in Microsoft Visual Studio project. Click "Attach To Process" option. it will be show a list of services running in your system. Locate your service name and double click it. It will attach debugger to your service. Now when your service will run you will be able to debug it in your VS.Net project.

      Regards, Kapil Thakur (Where's there is Kapil , there is a way) - thakur.kapil@gmail.com

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups