Hello All, we are trying to obfuscate our application DLLs with Dotfuscator Obfuscation tool. after compile the code, we use Dotfuscator application to obfuscate the DLL which run successfully, but after trying to run the application we have the following Error:
Also, I excluded all entities & structure classes from the process, also "CustInfo" is an Entity with Database and the error happened when Querying and process data from it. Is Obfuscation process can't be used with Dataobjects.net, Or we have to do something (in code or by other tool). Thanks |
Hello Alexey, Thanks for your support, it worked by excluding compiler's generated linq related classes from obfuscation process(example: classes generated due to join to Queryable created by 'Query.All<t>' method), I don't know if those classes generated by dataobjects or not but it works. Thanks |
Hello ahmad emad The exception appears when DO tries to create an Entity, Structure or EntitySet instance. DO needs special method which is added by Weaver to every descendant of Entity, Structure and EntitySet. Make sure that model is processed by weaver. Note that, I don't know what exactly this obfuscator does and what options you set. Some parts are based on reflection and require names of methods (or fields, or properties). Those part might be critical for obfuscation. If you give us some demo which behaves exactly the same I'll probably give you more useful answer. I mean two assemblies (one is obfuscated and another is not) - and some project which uses it. |