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. General Programming
  3. C#
  4. How to call a function from windows service

How to call a function from windows service

Scheduled Pinned Locked Moved C#
questioncsharpdatabasedebuggingxml
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
    krishna19
    wrote on last edited by
    #1

    hi all, I have a class which has a functions to generate XML files based on given parameters, Move these files from one machine to another and execute these files over a database. Iam able to call these functions fine on a button click event. It is required that the functions all be automated .. I tried this by calling these functions from a windows service(C#) in the OnStart() method but i see that they are not executing... I am not able to debug the windows service. How can i automate the execution of my class functions using windows service or some other kind of scheduler? Thanks in anticipation

    L 1 Reply Last reply
    0
    • K krishna19

      hi all, I have a class which has a functions to generate XML files based on given parameters, Move these files from one machine to another and execute these files over a database. Iam able to call these functions fine on a button click event. It is required that the functions all be automated .. I tried this by calling these functions from a windows service(C#) in the OnStart() method but i see that they are not executing... I am not able to debug the windows service. How can i automate the execution of my class functions using windows service or some other kind of scheduler? Thanks in anticipation

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      See this: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskDebuggingServiceApplications.asp

      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