Welcome to Macrobject Community Login | Register | Faq  

    Macrobject Community
  Macrobject Software Knowledge Management and Collaboration Platform
Search    
   

Re: Two problems with obfuscator
Started by fabriciogomes at 08-19-2009 10:30 AM. Topic has 3 replies.

Print Search « Previous Thread
  08-19-2009, 10:30 AM
fabriciogomes is not online. Last active: 8/26/2009 9:44:37 PM fabriciogomes

Top 150 Posts
Joined on 08-20-2009
Posts 1
Two problems with obfuscator
Reply Quote
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!!!

   Report 
  08-20-2009, 4:17 PM
Bill is not online. Last active: 12/18/2009 11:43:49 PM Bill

Top 10 Posts
Joined on 06-28-2008
Posts 15
Re: Two problems with obfuscator
Reply Quote
Thank you very much for the information.
We'll test it and try to fix the issue as soon as possible.
   Report 
  10-02-2009, 12:38 PM
Allbre is not online. Last active: 10/3/2009 3:25:40 AM Allbre

Top 150 Posts
Joined on 10-03-2009
Posts 1
Re: Two problems with obfuscator
Reply Quote
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.

   Report 
  10-02-2009, 8:04 PM
David is not online. Last active: 3/10/2010 10:30:46 PM David

Top 10 Posts
Joined on 01-26-2008
Posts 156
Re: Two problems with obfuscator
Reply Quote
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.
   Report 
Post
Macrobject Comm... » Developing Tool... » Obfuscator.NET » Re: Two problems with obfuscator

Powered by Community Server, by Telligent Systems