The comments about the UI in the other sub-thread, as far as I can tell, have no relevance to the code posted.
Presumably your log messages are showing up. Your code appears to be correctly handling potential exceptions HOWEVER you should log the stack trace also.
Finally, as to your problem...
Far as I can tell you do not seem to be actually starting the timer.
If true then what will happen is that your OnStart method will exit, which means no threads will be running in the service. Windows knows that threads are running and will not mark it as running unless one thread is running.
You will not get any help from this site to download illegally copied files: and that is exactly what the site you reference specializes in. The files it contains are copyrighted to the various authors and publishers and are effectively stolen.
Since we have many book authors here - and even more of us write technical documents and know exactly how hard it is to do - downloading books from illegal sites is not something we wish to be associated with.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
I have a DataGrid control for which one of the columns consists in ComboBox controls defined in a DataTemplate (refer to the xaml snippet below).
The ComboBox controls are populated through data binding and everything works fine.
My problem: I would like to disable (from code behind) the selected ComboBox control item as long as the treatment associated to that selection is not complete.
You said you want to "disable" the combo box "item" ...
You can't disable "items"; you can only handle / not handle them explicitly.
As for "controls", add a bool "Enabled" property to the code-behind / view-model that has GET logic related the treatment and is bound to the .IsEnabled property of the control (i.e. combo) in the XAML.
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
C# program and the client is running it on a server. It is installed on the remote server and it is accessed by different user under different accounts. It was written to be installed on the same computer that it is run from but I just found out the client installed it on a server. It appears that all the users are sharing the same user.config file. Could someone explain to me how the config files work when a .net program is run on a server? I need to fix it so it can be run either from the server or from a workstation. Could someone either point me to the right place to look I am either searching using the wrong words or explain to me what happens with the config files when you run from a server. I'm currently using the settings.settings built into C#
The processing of config files does not change if the app is running on the server version of Windows.
You have to find out HOW they are running your app on the server. For example, are they running the app under Remote Desktop? Terminal Services? Citrix? Or something similar? What's the configuration of the application objects in whatever sharing app they're using your app under.
Either they are going to change the configuration of the server and whatever app/desktop sharing they're using or your app would have to be modified to support running under these systems successfully.
System.ItDidntWorkException: Something didn't work as expected.
-- said no compiler, ever.