Hi, I've developed a couple of DLL assemblies component to be used with my
main exe application.
Since I need to distribute all the exe and dlls to the user PC, how can I
prevent the user, who might happen to have programming knowledge, from using
the dlls in their own application?
I know this may sound a bit paranoid, but I believe there must be some way
to prevent this. May be I should compile the dlls into the single exe or tie
the dlls to the main exe or something....??
Please advice. Thanks. 3 1672
kjon <2@22.co> wrote: Hi, I've developed a couple of DLL assemblies component to be used with my main exe application.
Since I need to distribute all the exe and dlls to the user PC, how can I prevent the user, who might happen to have programming knowledge, from using the dlls in their own application?
I know this may sound a bit paranoid, but I believe there must be some way to prevent this. May be I should compile the dlls into the single exe or tie the dlls to the main exe or something....??
I don't know exactly how .NET obfuscators work, never having used one,
but you may be able to obfuscate your exe and dll at the same time, so
that name changes in the dll are reflected in the exe. That doesn't
stop anyone from using the dll, but it makes it almost impossible to
understand what's used for what.
--
Jon Skeet - <sk***@pobox.co m> http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Welcome to the complex world of CAS (Code access Security). You can key
the libraries so they can only be used by your applications. Use this
link in your Visual studio help to start diving into the topic
ms-help://MS.VSCC.2003/MS.MSDNQTR.2004 APR.1033/cpguide/html/cpconCodeAccess Security.htm
This is an extreemly complicated subject with many options. We are in
the process of trying to get Microsoft to give us better documentation
on these issues ourself. .Net does have a lot of support but how and
where to use it are not well documented.
Hope this helps to get you started.
Leon Lambert
kjon wrote: Hi, I've developed a couple of DLL assemblies component to be used with my main exe application.
Since I need to distribute all the exe and dlls to the user PC, how can I prevent the user, who might happen to have programming knowledge, from using the dlls in their own application?
I know this may sound a bit paranoid, but I believe there must be some way to prevent this. May be I should compile the dlls into the single exe or tie the dlls to the main exe or something....??
Please advice. Thanks.
You need to give a StrongName to your main exe and in your DLL's ensure
that all callers have a StrongNameIdent ityPermission of the main exe's
strong name. http://msdn.microsoft.com/library/de...classtopic.asp
Sijin Joseph http://www.indiangeek.net http://weblogs.asp.net/sjoseph
kjon wrote: Hi, I've developed a couple of DLL assemblies component to be used with my main exe application.
Since I need to distribute all the exe and dlls to the user PC, how can I prevent the user, who might happen to have programming knowledge, from using the dlls in their own application?
I know this may sound a bit paranoid, but I believe there must be some way to prevent this. May be I should compile the dlls into the single exe or tie the dlls to the main exe or something....??
Please advice. Thanks.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ross Pellegrino |
last post by:
Hi
I know about Component Licensing. However, that Component Licensing is not
well suited for my particular need. I understand about runtime and design
time components but I want my components to be used by non-GUI apps as well.
I have an Assembly with many non-design classes that I would like only
licensed developers to use. However, when they deploy their application
along with my assembly to their clients, I don't want their...
|
by: modemer |
last post by:
Question is as in subject.
For example:
class BaseClass {
public:
void func() { do something; } // I don't want this function being
overloaded in its inherited class
};
|
by: Tony Maresca |
last post by:
Hi. I have a class derived from a UserControl,
that I want to allow others to derive controls
from. I don't want them to design the base
class (which is derived from a UserControl).
I know that I can prevent the control from being
designed by making it not the first class in the
code file, but is there another more 'official' way
to do this via attributes.
|
by: Frankie |
last post by:
When I want to prevent a page from being cached, I have been using the
following directive:
<%@ OutputCache Location="none" %>
I have also seen a few other methods recommended to prevent page caching.
like these...
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.Cache.SetNoStore()
Response.AppendHeader("Pragma", "no-cache");
|
by: Brian |
last post by:
Hello -
Is there a way to prevent the user from creating a blank row at the
bottom of a datagrid? I want a read only grid that allows the user to
view data but not select specific cells or create a blank row, etc.
Thanks,
Brian
| |
by: Larry Woods |
last post by:
I have a method in my base class that I want ALL derived classes to use.
But, I find that I can create a "Shadow" method in my derived class that
"overrides" the method in my base class. Can't figure out what attribute to
put on the base class method to prevent this.
TIA,
Larry Woods
|
by: kjon |
last post by:
Hi, I've developed a couple of DLL assemblies component to be used with my
main exe application.
Since I need to distribute all the exe and dlls to the user PC, how can I
prevent the user, who might happen to have programming knowledge, from using
the dlls in their own application?
I know this may sound a bit paranoid, but I believe there must be some way
to prevent this. May be I should compile the dlls into the single exe or tie
the...
|
by: Larry Bud |
last post by:
I rarely crosspost, but this affects both ASP and Javascript
REALLY odd bug that I ran across in ASP 3.0. I have an input type of
file, user clicks browse, then places his cursor in the filename, puts
a space at the end of the file, and uploads it. Web server doesn't
translate the MIME type of document properly because it doesn't end
with a valid extension, yet the file itself uploads successfully. I'm
using SAFileUP for my uploading...
|
by: APA |
last post by:
Why does adding code to the form submit function using the RegisterOnSubmitStatement method prevent the server side event handler for the submit
button from firing? This is completely useless. I need some custom javascript validation on form submit but why does is kill the submit button event
handler? Submit buttons don't use __doPostBack so what is being effected?
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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...
| |
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...
|
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...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |