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. text in windows service appears to have old reference

text in windows service appears to have old reference

Scheduled Pinned Locked Moved ASP.NET
question
4 Posts 3 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.
  • M Offline
    M Offline
    Member 3919049
    wrote on last edited by
    #1

    I have created a Windows Service. In the OnStart I added basic logging. The following is written to the log - "started on " + DateTime.Now. I updated the code to pull from App.config and I commented out the original hard-coded code. I uninstalled, rebuilt and reinstalled. Weird thing is - the old "started on" text is still getting written to the log even though I've commented out in the code. I changed the text in App.config to something completely different. So - How is this possible and what might I be missing?

    S A 2 Replies Last reply
    0
    • M Member 3919049

      I have created a Windows Service. In the OnStart I added basic logging. The following is written to the log - "started on " + DateTime.Now. I updated the code to pull from App.config and I commented out the original hard-coded code. I uninstalled, rebuilt and reinstalled. Weird thing is - the old "started on" text is still getting written to the log even though I've commented out in the code. I changed the text in App.config to something completely different. So - How is this possible and what might I be missing?

      S Offline
      S Offline
      Sandeep Mewara
      wrote on last edited by
      #2

      Clear cache... delete bin.. clean solution... restart system! Last one... Reset IIS!

      M 1 Reply Last reply
      0
      • M Member 3919049

        I have created a Windows Service. In the OnStart I added basic logging. The following is written to the log - "started on " + DateTime.Now. I updated the code to pull from App.config and I commented out the original hard-coded code. I uninstalled, rebuilt and reinstalled. Weird thing is - the old "started on" text is still getting written to the log even though I've commented out in the code. I changed the text in App.config to something completely different. So - How is this possible and what might I be missing?

        A Offline
        A Offline
        aashish saalvi
        wrote on last edited by
        #3

        clear the textbox where the data is displayed at page loading. hope this helps.

        1 Reply Last reply
        0
        • S Sandeep Mewara

          Clear cache... delete bin.. clean solution... restart system! Last one... Reset IIS!

          M Offline
          M Offline
          Member 3919049
          wrote on last edited by
          #4

          Maybe there's something wrong with the way I'm installing/uninstalling/reinstalling? I have a solution with a Windows Service and an associated Setup project. This is at least partially right because it lets me install/uninstall/reinstall the service. One interesting thing though - I have to restart my computer before I can reinstall. Is this a bug with Microsoft or is there a workaround? It looks like only the code that I wrote when I created the initial setup project is getting installed. My assumption was that the setup project maintained a reference to the windows service that I created in the solution. So usually in .NET solutions when you add a reference to an external project any changes to that external project are automatically made available to the referring project in the solution. Do service/setup solutions work the same way? I was assuming that they did. This is the only reason I can think of why my code updates don't seem to be getting applied.

          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