- They cannot be simply ran by hitting F5 and hoping for the best. They must be tediously installed (or if like me you can write an External Tool to Visual Studio :-)
- You need to start the service manually (or again you could write a small batch file [using net start])
- The service will not be started from a network drive (You will get an error along the lines of: Error 403 File cannot be found) generic huh?
And last but not least....you can't use the Timer control contained in System.Windows.Forms, nope, it has to be a cousin (albeit almost identical) control within the System.Timers namespace. Use of the latter won't cause any compilation problems, it simply won't work, as I eventually found out from this obscure Microsoft article.
As you can see, writing a Windows Service is no trivial task...
Happy coding!
0 comments:
Post a Comment