473,386 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

License detection of runtime vs. design-time

I have an assembly that I want to license to developers.
I don't want to license the runtimes that they deliver to
their customers. There are no real design-time controls,
only some classes that they use by referencing the
assembly. If I implement the LicenseManager stuff the
LicenseContextMode of any object is always 'Runtime'
which makes sense. How can I tell if the assembly is
being used for development and not in the resulting
product? Any ideas? Do I need to just rely on a paper
license?

Thanks!

Mark
Jul 21 '05 #1
1 2420
Hi Mark,

Thanks for your post. Since you want to license to developers and don't
license the runtimes that they deliver to their customers, I believe that
you can use the "design time license".

As you know, licensing is desinged into runtim in the .NET Framework. The
piece that holds licensing together in .NET is the LicenseManager. The
LicenseManager is part of the runtime and whenever a class is instantiated,
the LicenseManager accesses the proper validation mechanism for the control
or component. Classes are marked as licensed by adorning the class with the
LicenseProviderAttribute. This attribute also specifies the type of
validation that occurs.

For the "design time license", a license provider need to find for a valid
license at design time. The license will be converted into a license key
and embedded into the executing assembly when building, so that it will run
properly on the client side. As you can see, an application using your
component cannot be built properly without the license.

For detailed information on .NET Licensing, I recommend you the following
articles:

.NET Licensing
http://windowsforms.net/articles/Licensing.aspx

Licensing Components and Controls
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconlicensingcomponentscontrols.asp

Please feel free to let me know if you have any problems or concerns.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

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

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: wschneider | last post by:
Hi I have a problem with passing a runtime license key for an ActiveX control to the method CreateControl() of the class pywin.mfc.activex.Control. Can anybody give me a hint in which form...
5
by: dba_db2 at nospam gmx.net | last post by:
We have got a brand new mutltiprocessor machine IBM pseries server with 2 processors. Now we want to buy a IBM DB2 license for this box. Does anyone know whether it is possible to buy a single...
8
by: Larry__Weiss | last post by:
What kind of licensing is needed to be able to use the Microsoft Access product and distribute the applications? In other words, what version of Microsoft Access does a developer need to buy in...
5
by: Senapathy | last post by:
Environment: WinXP, VC++ 7.1 Standard Edition ~~~~~~~~~~~ I have a set of functions that I invoke from main() function of a sample console app. These are the functions:...
3
by: benoit laude | last post by:
hi, I work on a windows application. It uses component of a runtime. The runtime is a cartographic runtime developpped in .net. The problem is that some user doesn't have the runtime installed....
8
by: Smitha3 | last post by:
Hi all, I have made an application using team suite 2005 beta2 trial version and to distribute it i want to procure the license for deploying the project that i made in vb.net. I have used...
1
by: rdemyan via AccessMonster.com | last post by:
I'm trying to implement a licensing scheme. There are three types of licenses: Trial - good for 30 to 60 days Interim - good for 1 year Fully Paid - no expiration Everything is working fine...
12
by: jnc3196 | last post by:
Help needed, the script below detects the correct browser but doesn't select the correct CSS file. Also how to call it from an external js file so as not to repeat it in every page. <html>...
0
by: vanleurth | last post by:
Hello, I have read posts on license managers that are used with runtime access applications developed in 2k3 but ... What about MS Access Applications developed in 2k7 that have a runtime and I...
0
by: origami.takarana | last post by:
Intrusion Detection Strategies ----------------------------------- Until now, we’ve primarily discussed monitoring in how it relates to intrusion detection, but there’s more to an overall...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.