|
-
Dec 10th, 2003, 04:02 PM
#1
Thread Starter
Addicted Member
Trial System
HI, I need help making a trial system for my program. I want it so it can only be exucted 3 times. Registry is out of the question because i have tried and people always edit it. So i want to use a some sort of system that uses my web server to keep track of the HD serial Numbers(I know how to do this). This is also good because i can get an idea of how many people tried it. Thanks in Advance
-
Dec 10th, 2003, 06:42 PM
#2
Frenzied Member
Well if the person is not connected to the internet, then thats a problem. Why dont you just keep a count internally of how many time the program has been executed? You can create a file on the users harddrive with a name that wont draw too much attention. Set the attributes to read only and hidden and write to it the amount of times the program is executed.
-
Dec 10th, 2003, 06:57 PM
#3
Thread Starter
Addicted Member
well my application uses the interent so know one with out the interent whould be useing it in the first place.
-
Dec 10th, 2003, 10:30 PM
#4
Thread Starter
Addicted Member
Is there sum way i can use php?
-
Dec 10th, 2003, 10:36 PM
#5
PowerPoster
Originally posted by VBGangsta
Is there sum way i can use php?
You are asking this in a .Net forum? Anyway, why don't you start looking into web services. It seems to be what you want, and you can stay with vb.net.
-
Dec 10th, 2003, 11:57 PM
#6
Frenzied Member
Re: Trial System
Originally posted by VBGangsta
So i want to use a some sort of system that uses my web server to keep track of the HD serial Numbers(I know how to do this).
Is that legal? To keep track of the HD serial number of users without letting them know?
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
-
Dec 11th, 2003, 12:09 AM
#7
Thread Starter
Addicted Member
I dont see why not, its a useless piece if information. I just want it to keep a statistic of how many people are trying the trial.
-
Dec 11th, 2003, 03:43 AM
#8
Fanatic Member
Create a webservice that creates a userID for the application then store this userID in the registry. Then use the webservice to keep track of how many times the program has been used.
-
Dec 11th, 2003, 11:20 AM
#9
PowerPoster
Originally posted by VBGangsta
I dont see why not, its a useless piece if information. I just want it to keep a statistic of how many people are trying the trial.
You should disclose that while on a trial, your app communicates hardware information. If you don't, you are opening yourself to privacy type lawsuits.
-
Dec 11th, 2003, 03:59 PM
#10
Thread Starter
Addicted Member
If i were to time how long they could use the trial, does the timers use the system clock because if they do people could just turn back their clocks and use it for as long as they want.
-
Dec 11th, 2003, 04:14 PM
#11
If you were to use a WebService you could log the time on the server so it wouldn't matter if they changed their clock on the client side.
Here is the idea:
When the app starts up it makes one web service call which is a function: IsTrialOver(ClientID) As Boolean which accepts whatever you decide is a unique id for the client as an argument and returns True/False whether or not to continue running the app. On the server side the web service logs the clientid and current time then checks against the first entry for that client to see if the trial has expired.
ClientID Time
1 1/1/03 12:16 am 'logged the first time used by client 1
If Now>ClientTime.AddDays(30) Then Return True 'return true that the trial is expired or over and then in the app terminate.
Last edited by Edneeis; Dec 11th, 2003 at 04:25 PM.
-
Dec 11th, 2003, 05:03 PM
#12
Thread Starter
Addicted Member
I like the Idea of useing the server time. This is what i want to happen. I only want them to be able to execute the trial 3 times, so i guess i will have to use the registry for this part but them i also only want the trial to run for 5 minutes. I want to show the 5 minutes counting down in the title bar of the app. So how whould i get the server time?
-
Dec 11th, 2003, 07:33 PM
#13
A web service runs on the server so the local time in the function should be server side.
-
Dec 11th, 2003, 08:10 PM
#14
Fanatic Member
Your in luck! I am planning on developing a Trial/Demo system for the developers here on VB Forums. It won't be written in vb though Sorry Won't happen for a few months so stay tuned!
-
Dec 11th, 2003, 08:45 PM
#15
Thread Starter
Addicted Member
Cool nkad!!
Although this "server timer" idea is exactly what i need, i think its a little over my head. When u say server side u mean running on the server right? well how could i write sumthing that does that?
-
Dec 11th, 2003, 09:20 PM
#16
You need to write a web service and host in on the web. There are tutorials on making web services in the help files, but it isn't hard.
-
Dec 11th, 2003, 09:34 PM
#17
PowerPoster
Originally posted by Edneeis
You need to write a web service and host in on the web. There are tutorials on making web services in the help files, but it isn't hard.
As a matter of fact, this system is downright easy! Maybe 50 lines of code max.
-
Dec 11th, 2003, 10:20 PM
#18
Thread Starter
Addicted Member
Could someone please start me off, im not sure what to do. I tried searching but no luck.
-
Dec 12th, 2003, 02:47 AM
#19
Keep searching you'll figure it out. Here is a small example to get you started. I am running the web service on my server but the code for it is in the zip as well. It makes each clientID (which is just a variable in the app) expire 1 minute after the first use. you can tweak it from there.
-
Dec 12th, 2003, 10:22 PM
#20
Thread Starter
Addicted Member
ok thanks, i edited it to my liking but when i try to add a web reference it causes VS to close down. I uploaded the .asmx file and the wsdl file is that every thing or is there more and what link should i put in for the web ref, to the .asmx?
-
Dec 13th, 2003, 01:49 AM
#21
The web service requires more than just the file, it gets compiled as part of a web application. You should really read up on web services in the help or else where and it will tell you what you need to do.
-
Dec 14th, 2003, 12:23 AM
#22
Thread Starter
Addicted Member
o ok, but when i try to add the reference it trys to find soumthing to reference, so what should i direct it to, the XML?
-
Dec 14th, 2003, 03:50 AM
#23
Now you'd reference the URL of the Web Service.
-
Dec 14th, 2003, 12:31 PM
#24
Thread Starter
Addicted Member
Does it matter that my server doesnt have asp?
-
Dec 14th, 2003, 07:06 PM
#25
Your server will need to have .NET and be able to run web services or aspx.
-
Dec 14th, 2003, 07:12 PM
#26
Thread Starter
Addicted Member
well, they say they run linux but VS says it has asp.net 1.0 so will this work?
-
Dec 14th, 2003, 09:52 PM
#27
I wonder how many charact
wossname, you will need to find a host that runs .Net on their server. Typically (i say because there may be that one I never saw that hosts .Net on a platform other than windows), these will be hosts with Window servers .
http://www.accesshosts.com/directory/asp-dot-net.php
Alternatively, you could build a web service in Java, but it doesn't sound you want to deal with that. (And I never have written one myself in Java).
-
Dec 14th, 2003, 10:16 PM
#28
Thread Starter
Addicted Member
Do you happen to know any free ones because i am already paying a fortune for my server, and i whould only need a small amount of space. Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|