473,581 Members | 2,497 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Reflecti on.Assembly.Loa dFrom("path_to_ file.dll");

Form newForm = new Form();
newForm = (Form)asm.Creat eInstance("Name space.frmTestfo rm");

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 2551
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.Reflecti on.Assembly.Loa dFrom("path_to_ file.dll");

Form newForm = new Form();
newForm = (Form)asm.Creat eInstance("Name space.frmTestfo rm");

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.d kwrote:
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.Reflecti on.Assembly.Loa dFrom("path_to_ file.dll");
Form newForm = new Form();
newForm = (Form)asm.Creat eInstance("Name space.frmTestfo rm");
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
1887
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 to called it due to the obfuscation process), but I don't know how to solve the problem except by excluding the classes I delegate to...
0
1412
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 which takes the dll from some directory. Before i run the setup project, i want the dlls to be built using dotfuscator and i don't want any manual...
10
3255
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 can even see my protected members of class A. How could I hide these informations about class A, just give them the interface informations. ...
3
3972
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 course, since the app has been obfuscated, the only information I got about what caused the error pointed to resource aq. The Dotfuscator...
2
2285
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 could add protection. The docs say that to run it from vs.net to run it from the external tools menu then follow the gui. The External Tools dialog...
1
1287
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 of the security forums. thanks, T
12
3781
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. 1. The Deserialization goes like: #Region " Load "
8
7586
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 w/strong name and I obfuscate the dll when I run the exe it crashes because cannot load the
1
4656
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 dotfuscator. I can run it from the command line and it always pops up a gui even when \q option is used. Is there a way to get dotfuscator community...
0
7868
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...
0
7792
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...
0
8149
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7899
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...
0
8175
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...
1
5674
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5364
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...
1
1403
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1138
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...

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.