CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 5/1/2005 2:51:38 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 5 Views: 32 Favorited: 0 Favorite
6 Items, 1 Pages 1 |< << Go >> >|
Salameh
Asp.Net User
Building my own licensce key5/1/2005 2:51:38 AM

0

Licenscing software is too darned expensive so I thought about building my own.

I thought the best way in doing it would be build a dll file with each new liscence user add in a new domain checker, so each compile would have all the valid domains contained in the dll.

The registered user would then add the license dll to the bin of the web application, so the control would know it is a valid user.

The problem i having trouble figuring out is that the control would need a reference to this dll, such as a declaration of

using menulicense;

The output from the control would depend if there is a licensce dll in the bin directory.  How do i get the control to still run if it can't find the dll in the bin directory which is a valid option.

PLBlum
Asp.Net User
Re: Building my own licensce key5/1/2005 5:45:34 PM

0

Since I built my own licensing a few years ago (before XHEO Licensing was out), I hope to offer you some insight.

You can open an assembly without a "using" clause. See the Assembly class for its static method LoadWithPartialName(). This method will load an assembly from the \bin or GAC folders. Then you use Reflection (a group of classes in .net to interact with an assembly and its types). There is alot of documentation on Reflection both in the .net docs and on the web.

I do not recommend using an assembly. It's too complicated because you have to run a compiler and imbed data into your compiled code (perhaps through a resource). You can create an encrypted binary file with the data you want to provide. You tell the user where to put it and have your main control's assembly open that file, unencrypt it and look at its data.

From the work it took to create my own licensing system, I can tell you that XHEO Licensing is probably very cost effective at around $300. If I judge the cost of my time at $50/hr (probably a low value here in the US), any more than 6 hours of development would pay for the product. It took me over 1 week because you have to write your system that generates these files as well as reads them. Then there is all the testing/debugging involved, which has been eliminated by a third party who has been shipping this product for over 2 years.


--- Peter Blum
Creator of Professional Validation And More Suite, Peter's Date Package, and Peter's Polling Package
www.PeterBlum.com
Salameh
Asp.Net User
Re: Building my own licensce key5/2/2005 2:59:12 PM

0

You have been very helpful on my project Mr Blum and I appreciate it.  Your encrypted file idea is a better idea than my dll idea.  Used the System.Security.Cryptography and got that peice working.

Corious what would be the best information to obtain from the user to provide a generic licensce.  Either a IP address or a domain name.  Any ideas.

PLBlum
Asp.Net User
Re: Building my own licensce key5/2/2005 4:00:34 PM

0

Good question and I hope others will answer with their views. Here's mine:

I decided to avoid using IP address and domain names. Instead, I license per computer, by matching the computer name (found in System.Environment.MachineName).

When designing license security, there is a balance you need between ease of use and total protection. I have decided to keep things closer to the ease of use side. Therefore, I don't actually embed anything specific about their system into my license files. That way, they can move the files to a new computer without difficulty. The idea for me is to keep customers from getting frustrated. I want happy customers because it makes my business far easier to run.

So how do I match to a computer name? My web control has a public global string property. The user must assign that property to the serial number (embedded in the license file) and the computer name. They do this in Application_Start. Later if they change the computer name, they update the application. You can see how this favors ease of use over total protection.

My greatest protection is that my customers are happy and do purchase licenses as they add new servers.


--- Peter Blum
Creator of Professional Validation And More Suite, Peter's Date Package, and Peter's Polling Package
www.PeterBlum.com
Salameh
Asp.Net User
Re: Building my own licensce key5/2/2005 4:24:32 PM

0

How on this approach will you keep the license from being distributed to all his buddies.   Seems like if you have a copy it can be distributed to non-licensced users.  Don't see any way around from not embedding.
PLBlum
Asp.Net User
Re: Building my own licensce key5/2/2005 10:35:23 PM

0

That's exactly the point I was telling you when I spoke about the balance between ease of use and total protection. I have elected to keep it easier for the user which means its not as secure. I believe that all forms of protection can be worked around. If not by the person who buys it, by someone who cracks your security and publishes it on a distribution site.

Some vendors sell licenses per developer; others per production server. I choose to sell by production server and allow unlimited developers to use that production server license. So I expect them to copy the license file around so long as they don't give it to third parties who have no business with it.


--- Peter Blum
Creator of Professional Validation And More Suite, Peter's Date Package, and Peter's Polling Package
www.PeterBlum.com
6 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Building my own licensce key - ASP.NET Forums Re: Building my own licensce key ... Since I built my own licensing a few years ago (before XHEO Licensing was out), I hope to offer you ...
Kaspersky Lab Forum > Licence key date change on upgrade Some time after this I purchased a Laptop and put the same build on with the same license key. ... Are you saying that you have installed the same licensce key for KAV ... It seems that you purchased your license key in Jan, 2005; to my ... of your computers in your own house; there are no restrictions in this way. ...
The Green Button - Digital Cable Support on Any PC Since this key only needs to be entered in while using MediaCenter I ... licenses to OEMs so each BIOS should have the table and a licensce number. .... be wrong (we would obviously be on our own in terms of warranty and support, ... I know when I'd originally been working through building my HTPC, ...
Parallels: upgading xp installation to vista - Mac Forums How do I upgrade my XP machine to Vista? Is it even possible? ... Have you tried the new parallels update build 3188? .... a new VM as a trial (dont put in a licensce key when you install) and see if it work for you etc, ...
Pearls of Flex: March 2008 When FlexBuilder Pro version is bought and a valid licensce key is entered ... date information we didn't use it while building the OLAP cube. .... backgroudColor properties (similar to my other posts for DG row background coloring). ...


Videos:
Lec 9 | MIT 7.014 Introductory Biology, Spring 2005 Molecular Biology I (Prof. Graham Walker) View the complete course: http://ocw.mit.edu/7-014S05 License: Creative Commons BY-NC-SA More ...
Connexions - Building Communities and Sharing Knowledge Google TechTalks April 11, 2006 Richard G. Baraniuk Richard G. Baraniuk is the Victor E. Cameron Professor of Electrical and Computer ...
Lec 27 | MIT 5.111 Principles of Chemical Science, Fall 2005 Transition Metals (Prof. Catherine Drennan) View the complete course: http://ocw.mit.edu/5-111F05 License: Creative Commons BY-NC-SA ...
Lec 12 | 8.01 Physics I: Classical Mechanics, Fall 1999 Non-Conservative Forces - Resistive Forces - Air Drag - Terminal Velocity View the complete course: http://ocw.mit.edu/8-01F99 License ...
An Introduction to SQLite Google TechTalks May 31, 2006 Richard Hipp ABSTRACT SQLite is a small C library that implements a self-contained, embeddable, zero ...












updating an access database

wanting to create (or find) a toolbox (ui) control for datetime label custom formatting

how can i set up my project's directory organization??

problem with installing pubs database in the guided tour

is it a bug in the personal web site starter kit?

search datagrid

how to find out the index of a column

searching in the grid view

import data to sql server express

remote debugger

key not valid for use in specified state

how to select & insert data in the same table

vwd express beta 2 - database explorer

any problem running a website on vs created in vwd

tell us your express story and win $100!

using my program on a local machine

bug in vwd 2005 express?

what two-way data bind means????

sql database connection in visual web developer

can't reference controls dropped in the designer directly in my [file].aspx.cs

changing control declaration ??

background image in vwd exp. web page

visual web developer 2005 & asp.net 2.0

css formatting is lost when master page not open

vwd: errors with range validator

asp 2 quick questions

cannot run v1.1 with it's web server with 2.0 installed

newbie - any apperance or performance issues to consider when choosing tables, layering or absolute positioning in webpage layout?

themes

vwd express compatibilty

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT