473,320 Members | 1,691 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,320 software developers and data experts.

Class library and dotfuscator

Hi group,

I have a class library containing a Windows form. I create a dll from
this project and use it in my application like so:

Assembly asm =
System.Reflection.Assembly.LoadFrom("path_to_file. dll");

Form newForm = new Form();
newForm = (Form)asm.CreateInstance("Namespace.frmTestform");

newMDIChild = newForm;

This works like a charm. I now put all the dll's like this in one
directory and load them into my app.

Now the problem comes when I use Dotfuscator. The line that says:
newMDIChild = newForm;

Gives me a null exception error. I can set Dotfuscator to "library"
mode and then my code works again. However the library is easy to
decompile.

So I'd like to know if it is at all possible to load the assembly in
any other way and still be able to fully use dotfuscator. I do I have
to settle for less protection?

Kind regards,
Martin.

Sep 8 '07 #1
2 2534
ma*****@hotmail.com wrote:
I have a class library containing a Windows form. I create a dll from
this project and use it in my application like so:

Assembly asm =
System.Reflection.Assembly.LoadFrom("path_to_file. dll");

Form newForm = new Form();
newForm = (Form)asm.CreateInstance("Namespace.frmTestform");

newMDIChild = newForm;

This works like a charm. I now put all the dll's like this in one
directory and load them into my app.

Now the problem comes when I use Dotfuscator. The line that says:
newMDIChild = newForm;

Gives me a null exception error. I can set Dotfuscator to "library"
mode and then my code works again. However the library is easy to
decompile.

So I'd like to know if it is at all possible to load the assembly in
any other way and still be able to fully use dotfuscator. I do I have
to settle for less protection?
I will assume that when mode library the obfuscator keeps
public names.

Maybe you could change more names to internal.

Else you could look for an obfuscator that allows you to
list names to exclude from obfuscation.

Arne
Sep 8 '07 #2
On 8 sep, 18:57, Arne Vajhøj <a...@vajhoej.dkwrote:
mart...@hotmail.com wrote:
I have a class library containing a Windows form. I create a dll from
this project and use it in my application like so:
Assembly asm =
System.Reflection.Assembly.LoadFrom("path_to_file. dll");
Form newForm = new Form();
newForm = (Form)asm.CreateInstance("Namespace.frmTestform");
newMDIChild = newForm;
This works like a charm. I now put all the dll's like this in one
directory and load them into my app.
Now the problem comes when I use Dotfuscator. The line that says:
newMDIChild = newForm;
Gives me a null exception error. I can set Dotfuscator to "library"
mode and then my code works again. However the library is easy to
decompile.
So I'd like to know if it is at all possible to load the assembly in
any other way and still be able to fully use dotfuscator. I do I have
to settle for less protection?

I will assume that when mode library the obfuscator keeps
public names.

Maybe you could change more names to internal.

Else you could look for an obfuscator that allows you to
list names to exclude from obfuscation.

Arne
Hi Arne,

Thank you for your help. I will look at changing names to internal.
And I also thought about making a
seperate class where I would put all the "sensitive" coding. If I
reference the class from the "form class"
I could totally obfuscate that class yet leave the class with the form
untouched (library mode).

Martin.

Sep 9 '07 #3

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

Similar topics

5
by: Robbie De Sutter | last post by:
Hello, When I use the dotfuscator (Community Edition), all my delegate functions no longer work. I understand the reason why (the function in my delegate no longer exists under the name I try...
0
by: venky | last post by:
How can i integrate dotfuscator with my solution projects. Like when i build projects in my solution using visual studio.net, i want to be build using dotfuscator. Like i have a setup project...
10
by: Ray Z | last post by:
hi, there I build a Class Library, I write a class A to implement interface IA. The problem is when I give the dll file to others, thet can get all information about not only IA, but also A. They...
3
by: Tom Bean | last post by:
I am using Dotfuscator Community Edition to obfuscate an application for Pocket PC written in C#. When I made the first pass with Dotfuscator, the app threw a MissingManifestResourceException. Of...
2
by: Tina | last post by:
I have a dll created from an asp.net component I wrote. I want to distribute it to other developers but I'm told it can be reverse engineered. I read the docs on dotfuscator thinking that this...
1
by: Tina | last post by:
I found the dotfuscator GUI interface. It wants me to open an xml file. My component project has no xml file. Also, is there a specific forum for dotfuscator issues? It's not mentioned in any...
12
by: Michael Maes | last post by:
Hello, I have a BaseClass and many Classes which all inherit (directly) from the BaseClass. One of the functions in the BaseClass is to (de)serialize the (inherited) Class to/from disk. ...
8
by: Wacom | last post by:
Hi all! I'm doing some test of obfuscation of assembly marked with the strong name (Fw 2.0). Someone can tell me how does this work? I mean: if I have an exe and a couple of dll marked...
1
by: dongarbage | last post by:
The subject says it all :) I have Visual Studio 2005, it comes with community edition of dotfuscator. I'd like to use dotfuscator in a post-build event. However, I get an error when I call...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.