Red Gate forums :: View topic - App doens't work after obfusication
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 6
SmartAssembly 6 forum

App doens't work after obfusication

Search in SmartAssembly 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
Daniel Huhn



Joined: 18 Oct 2011
Posts: 2

PostPosted: Wed Oct 19, 2011 7:21 am    Post subject: App doens't work after obfusication Reply with quote

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

Code:
Der offentliche Member WriteLog fr 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 ‘..()


I've checked multiple times: the not obfusicated one works!
I dont know what information to provide to get help ...

We're using VS2088 professional with Win7 64bit
The project was built to AnyCPU and .NET2.0

Any ideas?
_________________

BCIS IT-Systeme GmbH
Back to top
View user's profile Send private message Send e-mail
Simon C



Joined: 26 Feb 2008
Posts: 140
Location: Red Gate Software

PostPosted: Wed Oct 19, 2011 11:11 am    Post subject: Reply with quote

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/Content?p=SmartAssembly&c=SmartAssembly/help/5.0/SA_UsingCustomAttributes.htm&toc=SmartAssembly/help/5.0/toc1032253.htm)
Back to top
View user's profile Send private message Send e-mail
Daniel Huhn



Joined: 18 Oct 2011
Posts: 2

PostPosted: Wed Oct 19, 2011 1:01 pm    Post subject: Reply with quote

I excluded the method causing problem and everythings works fine. Thanks.
_________________

BCIS IT-Systeme GmbH
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group