App doens't work after obfusication

.NET obfuscator and automated error reporting

Moderators: Luke Jefferson, melvyn.harbour, dom.smith

App doens't work after obfusication

Postby Daniel Huhn » Wed Oct 19, 2011 7:21 am

After we obfusicated our app, we get those exeption (German)

[code]Der offentliche Member WriteLog für den Typ Œ wurde nicht gefunden.
18.10.2011 16:48:43 - bei Microsoft.VisualBasic.CompilerServices.Symbols.Container.GetMembers(String& MemberName, Boolean ReportErrors)
bei Microsoft.VisualBasic.CompilerServices.NewLateBinding.CallMethod(Container BaseReference, String MethodName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, BindingFlags InvocationFlags, Boolean ReportErrors, ResolutionFailure& Failure)
bei Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateCall(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean IgnoreReturn)
bei ‘.
Daniel Huhn
 
Posts: 2
Joined: Tue Oct 18, 2011 4:03 pm

Postby Simon C » Wed Oct 19, 2011 11:11 am

Looks like you're using some sort of late-binding mechanism. Obfuscation will break reflection-like scenarios, as obfuscation changes the name of everything.

You'll need to add obfuscation and/or pruning exclusions in the SmartAssembly UI for the members you're late-binding to, or (if you've got Pro edition) add various DoNotObfuscate attributes to your codebase (see http://www.red-gate.com/supportcenter/C ... 032253.htm)
Simon C
 
Posts: 140
Joined: Tue Feb 26, 2008 4:56 pm
Location: Red Gate Software

Postby Daniel Huhn » Wed Oct 19, 2011 1:01 pm

I excluded the method causing problem and everythings works fine. Thanks.
Daniel Huhn
 
Posts: 2
Joined: Tue Oct 18, 2011 4:03 pm


Return to SmartAssembly 6

Who is online

Users browsing this forum: No registered users and 2 guests