Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentException
Which "same problem" are you talking about? I see several problem with this code.
Your service is started, OnStart is called, seeing that there is nothing in your OnStart method, nothing happens, the method exits, your service exits.
You do not have a timer 1 to use the tick event handler you have setup
You do not have a timer 2 to use the tick event handler you have setup
You would need to set the UseDefaultCredentials property to false
You probably don't have access to network resources depending on the user account your service is running under.
You can lead a developer to CodeProject, but you can't make them think.
The Theory of Gravity was invented for the sole purpose of distracting you from investigating the scientific fact that the Earth sucks.
I have a C# .NET software and I would like to deploy it with protection. I though many times of the [Product Key] which will be generated from a mix of hardware serials but I saw some applications such as Micros POS using the USB Dongle Protection.
I'd recommend you don't spend too much time or money on it...
You have to balance the number of lost sales against the cost of the protection. How much does a lost sale cost you (if the product is pirated by someone who would otherwise have bought it) compared with an hour of your time? If you are low volume or low cost, it doesn't take much before it costs you more to implement the protection than you save in lost sales.
And how good is the protection going to be? If your software is really popular (or really expensive), then hackers will get round the protection anyway: look at Photoshop. Adobe have a large team, and invest a lot of money in protecting the product. But...there is a "cracked" version on the torrents pretty much the same day a new version is released.
And if you make the protection too draconian, you will start to annoy people who have bought the product, and it doesn't take many of them to demand their money back before you get a bad reputation and nobody buys it anyway.
And dongles are physical objects: you have to ship them, which means holding them in stock (and paying in advance) - and that means no download model for distribution.
I'd look at an online verification every time you start up the app or similar, nothing much more complex - I'd not bother with dongles. But even then, you need to let the user know that is going to be required before he buys it. From a user POV there is nothing more annoying than finding out afterwards, when you have no signal!
You looking for sympathy?
You'll find it in the dictionary, between sympathomimetic and sympatric
(Page 1788, if it helps)
Last Visit: 31-Dec-99 18:00 Last Update: 18-Sep-14 20:04