text in windows service appears to have old reference
-
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?
-
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?
Clear cache... delete bin.. clean solution... restart system! Last one... Reset IIS!
-
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?
clear the textbox where the data is displayed at page loading. hope this helps.
-
Clear cache... delete bin.. clean solution... restart system! Last one... Reset IIS!
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.