Two problems with obfuscator

Obfuscator.NET

Two problems with obfuscator


fabriciogomes 08-19-2009, 10:30 AM
I have a application in ASP.NET C# with two problems with obfuscator...

In first case, the obfuscator throw a error in IIS on this code:

this.lblCaixaStatus.ForeColor = (condition ? Color.Green : Color.Red);

if i change to:
                if (condition)
                    this.lblCaixaStatus.ForeColor = Color.FromArgb(0, 255, 0);
                else
                    this.lblCaixaStatus.ForeColor = Color.FromArgb(255, 0, 0);

it works!!!


And in second case, in a Windows 2008 Server (64 bits), I receive the following error:
"Common Language Runtime detected an invalid program"

I can“t found a solution for this case... Anybody?

Sorry my english!!!

Re: Two problems with obfuscator


Bill 08-20-2009, 4:17 PM
Thank you very much for the information.
We'll test it and try to fix the issue as soon as possible.

Re: Two problems with obfuscator


Allbre 10-02-2009, 12:38 PM
After obfuscating our assembly using all of the options in the command line, we were getting a mystery error on load of one of the screens. We debugged it to these lines:

                gridView1.Appearance.EvenRow.BackColor = (_useAlternateColor) ? Styles.GridAlternateThemeNeutralBackgroundColor : Styles.DefaultFieldBackgroundColor;
                gridView1.Appearance.EvenRow.BackColor2 = (_useAlternateColor) ? Styles.GridAlternateThemeNeutralBackgroundColor : Styles.DefaultFieldBackgroundColor;

It worked by changing it too:
if (_useAlternateColor)
                {
                    gridView1.Appearance.EvenRow.BackColor = Styles.GridAlternateThemeNeutralBackgroundColor ;
                    gridView1.Appearance.EvenRow.BackColor2 = Styles.GridAlternateThemeNeutralBackgroundColor;
                }
                else
                {
                    gridView1.Appearance.EvenRow.BackColor = Styles.DefaultFieldBackgroundColor;
                    gridView1.Appearance.EvenRow.BackColor2 = Styles.DefaultFieldBackgroundColor;
                }


I also noticed the "[ObfuscationAttribute(Exclude = true)]" is not working. When I go into Reflector, I cannot see the methods and classes that I put this attribute on. I don't think these issues are related, I just found both of these issues at the same time.

I'm using build 2009.2.929.1497.

Re: Two problems with obfuscator


David 10-02-2009, 8:04 PM
Dear Allbre,

Would you like to send a sample assembly dll or exe to supports@macrobject.us to help us locate the issue?
Thanks in advance.

David.

Powered by Community Server, by Telligent Systems