vk
Joined: 06 Sep 2010 Posts: 1
|
Posted: Mon Sep 06, 2010 8:16 pm Post subject: type eligible for equivalence, but is not marked as public |
|
|
I am using trial version of SmartAssembly, and having issue with understanding what can i do to avoid next error
Form1.ExecuteNextStep-Could not load type 'XX.XX' from assembly 'MyAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The type is marked as eligible for type equivalence, but it is not marked as public.
[2010-09-06 14:23:23.484] Form1.ExecuteNextStep- at X.X.XX(String )
at X.X.TryGetMember(GetMemberBinder , Object& )
at CallSite.Target(Closure , CallSite , Object )
at CallSite.Target(Closure , CallSite , Object )
at Microsoft.VisualBasic.CompilerServices.IDOUtils.CreateRefCallSiteAndInvoke(CallSiteBinder Action, Object Instance, Object[] Arguments)
at Microsoft.VisualBasic.CompilerServices.IDOBinder.IDOGet(IDynamicMetaObjectProvider Instance, String MemberName, Object[] Arguments, String[] ArgumentNames, Boolean[] CopyBack)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack)
at MyAssembly.Class1.Processor.RunIndex(Int32 idx)
at X.X.XX(Int32 )
at X.X.XX(XX , Int32 , Exception& )
As note that i was able to run obfuscated version of assembly with xenocode postbuild 2010, and CryptoObfuscator 2010 R2 |
|
Brian Donahue
Joined: 23 Aug 2004 Posts: 6341 Location: Red Gate Software
|
Posted: Wed Sep 08, 2010 10:53 am Post subject: |
|
|
Hi Volody,
It's pretty clear that you are trying to bind to a member in another assembly using reflection, so if you are using merging you may have to switch to embedding. Trying to bind to types that have been renamed by SmartAssembly may also fail. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|