473,503 Members | 3,308 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 1313
"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.Reflection.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.googlegr oups.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.Reflection.Emit.DynamicAssembly.
- You can create an instance of DynamicAssembly with
AppDomain.DefineDynamicAssembly. 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, DefineUnmanagegResource, etc.
- You can save the DynamicAssembly to disk with the Save method.
- You can load assemblies dynamically using Assembly.Load, Assembly.LoadFrom
or Assembly.LoadWithPartialName
- 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.googlegr oups.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
1890
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...
6
4034
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...
3
1764
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...
7
3537
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...
9
5528
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...
1
3395
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...
4
1858
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...
14
2628
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...
1
5166
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...
0
7192
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,...
0
7064
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
7445
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...
0
5559
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,...
1
4991
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4665
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...
0
3147
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
369
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...

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.