By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,837 Members | 1,206 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,837 IT Pros & Developers. It's quick & easy.

Application Activation/Licensing Sample?

P: n/a
ML
Does anyone have any info on sample code for handling activation/licensing
for a vb.net app?
Just looking for something fairly basic to implement the ability to have an
application registered and tied to a specific single PC to help reduce
possible piracy.
Something where the user would install the app and then send a code via
email or phone to the seller who would in turn generate a code to fully
unlock the program.
Nov 20 '05 #1
Share this Question
Share on Google+
11 Replies


P: n/a
* "ML" <ml@schoonersolutions.com> scripsit:
Does anyone have any info on sample code for handling activation/licensing
for a vb.net app?


<URL:http://msdn.microsoft.com/library/en-us/cpguide/html/cpconlicensingcomponentscontrols.asp>
<URL:http://windowsforms.net/articles/Licensing.aspx>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2

P: n/a
ML
That is targeted at control licenses for use in VS is it not?
I am looking for something to handle the actual activation and licensing on
an end user application.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
* "ML" <ml@schoonersolutions.com> scripsit:
Does anyone have any info on sample code for handling activation/licensing for a vb.net app?

<URL:http://msdn.microsoft.com/library/en...nlicensingcomp
onentscontrols.asp> <URL:http://windowsforms.net/articles/Licensing.aspx>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #3

P: n/a
You can use it the same way.

"ML" <ml@schoonersolutions.com> wrote in message
news:Ol**************@TK2MSFTNGP12.phx.gbl...
That is targeted at control licenses for use in VS is it not?
I am looking for something to handle the actual activation and licensing on an end user application.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
* "ML" <ml@schoonersolutions.com> scripsit:
Does anyone have any info on sample code for handling activation/licensing for a vb.net app?

<URL:http://msdn.microsoft.com/library/en...nlicensingcomp onentscontrols.asp>
<URL:http://windowsforms.net/articles/Licensing.aspx>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


Nov 20 '05 #4

P: n/a
ML
I guess I am missing how it can be used that way and how it relates to
activation and registration tied to a specific PC. Are there any samples on
using it this way?

"Ray Cassick (Home)" <rc************@enterprocity.com> wrote in message
news:O4*************@TK2MSFTNGP11.phx.gbl...
You can use it the same way.

"ML" <ml@schoonersolutions.com> wrote in message
news:Ol**************@TK2MSFTNGP12.phx.gbl...
That is targeted at control licenses for use in VS is it not?
I am looking for something to handle the actual activation and licensing

on
an end user application.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
* "ML" <ml@schoonersolutions.com> scripsit:
> Does anyone have any info on sample code for handling

activation/licensing
> for a vb.net app?

<URL:http://msdn.microsoft.com/library/en...nlicensingcomp
onentscontrols.asp>
<URL:http://windowsforms.net/articles/Licensing.aspx>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>



Nov 20 '05 #5

P: n/a
The LicenseProvider (and subsequent license classes) are applied as
attributes to classes. Their chief role is to instantiate when the class
they protect has been created and try to determine if a file is there (the
license file) and then allow the license provider class (that you write) to
open it, use whatever is inside to validate the running mode somehow and
then either throw a license exception to stop execution or to allow the
class to be created.

There is really no reason why this cannot be used to license an application
instead of a class or component.

It took me quite a while to get my head around the LicenseProvider class but
once you get a hang of how it works it is really basic.

I am working on a complete licensing system right now so I don't have a
complete set of code to send you but find yourself a good example and dig
into it. I suggest the CD that comes with Programming with VisualBasic (ISBN
0-7356-2059-8). There is an EXCELLENT example of hoe to use the
LicenseProvider. I had found several examples on the web and none of them
worked well. This one was good the first time and helped my understanding in
a MAJOR way.
"ML" <ml@schoonersolutions.com> wrote in message
news:#1*************@tk2msftngp13.phx.gbl...
I guess I am missing how it can be used that way and how it relates to
activation and registration tied to a specific PC. Are there any samples on using it this way?

"Ray Cassick (Home)" <rc************@enterprocity.com> wrote in message
news:O4*************@TK2MSFTNGP11.phx.gbl...
You can use it the same way.

"ML" <ml@schoonersolutions.com> wrote in message
news:Ol**************@TK2MSFTNGP12.phx.gbl...
That is targeted at control licenses for use in VS is it not?
I am looking for something to handle the actual activation and licensing
on
an end user application.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
> * "ML" <ml@schoonersolutions.com> scripsit:
> > Does anyone have any info on sample code for handling
activation/licensing
> > for a vb.net app?
>
>

<URL:http://msdn.microsoft.com/library/en...nlicensingcomp onentscontrols.asp>
> <URL:http://windowsforms.net/articles/Licensing.aspx>
>
> --
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/>



Nov 20 '05 #6

P: n/a
Here is an example that I have found (that includes some source) to show you
how to license an application.

http://www.codeguru.com/columns/Expe...int.php/c5469/
"ML" <ml@schoonersolutions.com> wrote in message
news:#1*************@tk2msftngp13.phx.gbl...
I guess I am missing how it can be used that way and how it relates to
activation and registration tied to a specific PC. Are there any samples on using it this way?

"Ray Cassick (Home)" <rc************@enterprocity.com> wrote in message
news:O4*************@TK2MSFTNGP11.phx.gbl...
You can use it the same way.

"ML" <ml@schoonersolutions.com> wrote in message
news:Ol**************@TK2MSFTNGP12.phx.gbl...
That is targeted at control licenses for use in VS is it not?
I am looking for something to handle the actual activation and licensing
on
an end user application.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
> * "ML" <ml@schoonersolutions.com> scripsit:
> > Does anyone have any info on sample code for handling
activation/licensing
> > for a vb.net app?
>
>

<URL:http://msdn.microsoft.com/library/en...nlicensingcomp onentscontrols.asp>
> <URL:http://windowsforms.net/articles/Licensing.aspx>
>
> --
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/>



Nov 20 '05 #7

P: n/a
ML
Thanks for all the replies. I'll give it a look.
With an issue as important to software developers as licensing you would
think more samples would exist.

"Ray Cassick (Home)" <rc************@enterprocity.com> wrote in message
news:Oc**************@TK2MSFTNGP11.phx.gbl...
Here is an example that I have found (that includes some source) to show you how to license an application.

http://www.codeguru.com/columns/Expe...int.php/c5469/
"ML" <ml@schoonersolutions.com> wrote in message
news:#1*************@tk2msftngp13.phx.gbl...
I guess I am missing how it can be used that way and how it relates to
activation and registration tied to a specific PC. Are there any samples
on
using it this way?

"Ray Cassick (Home)" <rc************@enterprocity.com> wrote in message
news:O4*************@TK2MSFTNGP11.phx.gbl...
You can use it the same way.

"ML" <ml@schoonersolutions.com> wrote in message
news:Ol**************@TK2MSFTNGP12.phx.gbl...
> That is targeted at control licenses for use in VS is it not?
> I am looking for something to handle the actual activation and

licensing on
> an end user application.
>
> "Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message > news:%2***************@tk2msftngp13.phx.gbl...
> > * "ML" <ml@schoonersolutions.com> scripsit:
> > > Does anyone have any info on sample code for handling
> activation/licensing
> > > for a vb.net app?
> >
> >
>

<URL:http://msdn.microsoft.com/library/en...nlicensingcomp
> onentscontrols.asp>
> > <URL:http://windowsforms.net/articles/Licensing.aspx>
> >
> > --
> > Herfried K. Wagner [MVP]
> > <URL:http://dotnet.mvps.org/>
>
>



Nov 20 '05 #8

P: n/a
ML
Has anyone used Aspose.License?

"ML" <ml@schoonersolutions.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Does anyone have any info on sample code for handling activation/licensing
for a vb.net app?
Just looking for something fairly basic to implement the ability to have an application registered and tied to a specific single PC to help reduce
possible piracy.
Something where the user would install the app and then send a code via
email or phone to the seller who would in turn generate a code to fully
unlock the program.

Nov 20 '05 #9

P: n/a
I hear you!

That is exactly what I thought!
"ML" <ml@schoonersolutions.com> wrote in message
news:u7**************@TK2MSFTNGP11.phx.gbl...
Thanks for all the replies. I'll give it a look.
With an issue as important to software developers as licensing you would
think more samples would exist.

"Ray Cassick (Home)" <rc************@enterprocity.com> wrote in message
news:Oc**************@TK2MSFTNGP11.phx.gbl...
Here is an example that I have found (that includes some source) to show

you
how to license an application.

http://www.codeguru.com/columns/Expe...int.php/c5469/
"ML" <ml@schoonersolutions.com> wrote in message
news:#1*************@tk2msftngp13.phx.gbl...
I guess I am missing how it can be used that way and how it relates to
activation and registration tied to a specific PC. Are there any samples
on
using it this way?

"Ray Cassick (Home)" <rc************@enterprocity.com> wrote in message news:O4*************@TK2MSFTNGP11.phx.gbl...
> You can use it the same way.
>
> "ML" <ml@schoonersolutions.com> wrote in message
> news:Ol**************@TK2MSFTNGP12.phx.gbl...
> > That is targeted at control licenses for use in VS is it not?
> > I am looking for something to handle the actual activation and

licensing
> on
> > an end user application.
> >
> > "Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in

message > > news:%2***************@tk2msftngp13.phx.gbl...
> > > * "ML" <ml@schoonersolutions.com> scripsit:
> > > > Does anyone have any info on sample code for handling
> > activation/licensing
> > > > for a vb.net app?
> > >
> > >
> >
>

<URL:http://msdn.microsoft.com/library/en...nlicensingcomp
> > onentscontrols.asp>
> > > <URL:http://windowsforms.net/articles/Licensing.aspx>
> > >
> > > --
> > > Herfried K. Wagner [MVP]
> > > <URL:http://dotnet.mvps.org/>
> >
> >
>
>



Nov 20 '05 #10

P: n/a
Hi,

Do you mean the Aspose.License in the website: http://www.aspose.com/?

If so, I think you may try to post the question in the forum to see if that
will help you?
http://www.aspose.com/forums/Default.aspx

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 20 '05 #11

P: n/a
ML
Yes that is what I was referring too. Not looking for help with it, looking
for opinions on it.
Posting in their forum would be less unbiased I would suspect. Just looking
for general feedback on it.

""Peter Huang"" <v-******@online.microsoft.com> wrote in message
news:e7**************@cpmsftngxa06.phx.gbl...
Hi,

Do you mean the Aspose.License in the website: http://www.aspose.com/?

If so, I think you may try to post the question in the forum to see if that will help you?
http://www.aspose.com/forums/Default.aspx

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 20 '05 #12

This discussion thread is closed

Replies have been disabled for this discussion.