473,856 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Store licensing information

I would like to store a licensing information in a assembly.
It's easy to crypt/decrypt it, but how to stote it, if my app is
referencing and using this dll?
Is this possible?

Nov 30 '05 #1
5 1325
"Nikolay Petrov" <jo******@mail. bg> schrieb:
I would like to store a licensing information in a assembly.
It's easy to crypt/decrypt it, but how to stote it, if my app is
referencing and using this dll?


Free components:

Aspose.License
<URL:http://www.aspose.com/Products/Aspose.License/>

Commercial components:

XHEO|Licensing
<URL:http://www.xheo.com/products/enterprise/licensing/>

Infralution Licensing System
<URL:http://www.infralution .com/licensing.html>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 30 '05 #2
Thanks Herfried, but I am going for "Do it by my self".

Nov 30 '05 #3
Hi Nikolay,

You can create assemblies dynamically using the System.Reflecti on.Emit
namespace, AssemblyBuilder class, AddResourceFile method, etc. but I don´t
think that you can add resources dynamically to an assembly in use.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"Nikolay Petrov" <jo******@mail. bg> escribió en el mensaje
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
I would like to store a licensing information in a assembly.
It's easy to crypt/decrypt it, but how to stote it, if my app is
referencing and using this dll?
Is this possible?

Nov 30 '05 #4
Hi Carlos,
If an assemply si not in use, can I add resources to it? If so, then
can I load assembly dynamicly?
I guess reading resources from assembly is not a problem if it is in
use. Can I unload assemlby, store the resouce and load it again?

Nov 30 '05 #5
This is a challenging problem and I don´t know if it is feasible or not, but
here you have some info:

- To create or manage Assemblies programatically you have to use
System.Reflecti on.Emit.Dynamic Assembly.
- You can create an instance of DynamicAssembly with
AppDomain.Defin eDynamicAssembl y. I don´t know if you can get a
DynamicAssembly from an already existing Assembly. If the assembly is on
disk and unloaded, certainly you can disassemble it with ildasm.exe, add the
resource, and recompile it (some obfuscators use this technique to rename
symbols, etc.)
- You can add resources to a DynamicAssembly with the methods
AddResourceFile , DefineResource, DefineUnmanageg Resource, etc.
- You can save the DynamicAssembly to disk with the Save method.
- You can load assemblies dynamically using Assembly.Load, Assembly.LoadFr om
or Assembly.LoadWi thPartialName
- You can not unload assemblies from an AppDomain, you need to unload the
whole AddDomain, which is only possible for secondary AppDomains.

BTW, why can´t you store the license information in a separate XML file or
something like that?

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"Nikolay Petrov" <jo******@mail. bg> escribió en el mensaje
news:11******** **************@ o13g2000cwo.goo glegroups.com.. .
Hi Carlos,
If an assemply si not in use, can I add resources to it? If so, then
can I load assembly dynamicly?
I guess reading resources from assembly is not a problem if it is in
use. Can I unload assemlby, store the resouce and load it again?

Dec 1 '05 #6

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

Similar topics

4
1910
by: vbportal | last post by:
Hi, Not sure if this is the right group for the question: I've just finished a course/certification where I've used Visual Studio and want to work further on software development with C#,ADO,ASP hopefully the end result being an application that can be sold. Before proceeding, I wanted to better understand what licensing costs are involved in the .NET area. I would welcome any corrections to my oversimplified view and any further...
6
4083
by: aj | last post by:
I currently have 2 official DB2 Workgroup Edition licenses for my 2 v8 production servers. I also have tech support/software upgrade agreements in place for both servers. I am interested in building a separate backup/test DB2 server upon which I can experiment with impunity. This backup server will not be in production in any way, and the only person who will ever connect to it is me. It will be up and online most if not all of the...
3
1780
by: Ray Hayes | last post by:
I was having a really annoying problem getting some components I bought from ComponentOne to work. I found this posting in their knowledge base which seems to fix the problem. Is there a better workaround from Microsoft though ? It's a pain to keep adding these custom build steps. It seems there is a bug in VC++ 2003. The licenses.licx is ignored during the build process, therefore the licensing information is not included in VC++...
7
3551
by: ML | last post by:
What is the best/easiest means to return the serial/volume number of the drive containing the OS using VB.NET? I'm looking to get this information as a unique ID for activation/registration of a custom application so as to tie the software to a single PC. I need something that will work with 98, ME, 2000, XP, and newer. Or if anyone has other suggestiosn on best means to generate an ID to tie to a single PC for licensing I'd...
9
5546
by: vbdotnetmania | last post by:
Hi, I have looked through similar posts and have found Ken Tucker giving the reply about looking at article http://windowsforms.net/articles/Licensing.aspx This appears to be for controls and components and though I don't find it easy to understand it seems like it's appropiate for controls or components, but I can't seem to find anything that just applies a licence for my entire application or a licence for using classes, unless I'm...
1
3413
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 and I've even implemented a registration system where the users can upgrade by just receiving a code from me.
4
1883
by: Steve | last post by:
I'm in the process of finishing a vb2005 application for commerical use, and wanted to know if anyone has any favorites for licensing software? Would like something reasonably priced for a part-time developer and flexible for both trial and regular licensing. Thanks Steve
14
2669
by: Guillermo_Lopez | last post by:
Hello, Our company has developed several Access applications for our clients and we wish to expand to use a database server. We wish to use Access as the front end application and SQL Server 2005 as the back end Databes Server. Making a Server-Client application database. I'm very new to SQL Server so my concern is how the licensing works for a developer like us. I am aware that we can purchase the Developer edition for $49 USD. Our...
1
5180
by: sandeepkavade | last post by:
hi all, I want to retrive the licensing information such as Licensing count, which licensing is currently in use, whats its type (per processer or per user), licensing code etc. From where i can retrive the information? I want to do it for Sql Server 2005 and 2000. I read the blog "Tracking License Information in SQL 2005" on http://blogs.msdn.com/sqlblog/archive/2006/11/10/tracking-license-information-in-sql-2005.aspx but it doesnt...
0
9919
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10699
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10787
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10390
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9534
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7098
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4578
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4176
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3203
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.