Open tazzme opened 9 years ago
Are you embedding interop types? If yes, have you tried not to?
Hi sbolofsson,
Thanks for this hint. I was embedding interop types. Now after setting Embed Interop Types = False (also Copy Local = False, Specific Version = False) I get an Exception when obfuscating:
[ERROR] Failed to resolve a member, check if all dependencies are present in the correct version. Exception: dnlib.DotNet.MemberRefResolveException: Could not resolve method
What can I do? I played around for some while without success.
Thanks again.
I figured out that this problem was already reported in issue #254 and seemed to be caused by 0xd4d/dnlib#38.
So I checked out the current master of ConfuserEx together with the mentioned dnlib @ b224f70 sources and run the build command.
This build also raised the dnlib.DotNet.MemberRefResolveException...
Hi @tazzme,
I recently experienced the same error message. Basically as far as I can see, there can be 3 causes to this problem:
Good luck!
Hi @sbolofsson
thanks for this hint again. You're right, I am developing an office addin and I think the cause is a duplicate declaration in the office libraries just as you said. I probably referenced them wrongly. When I switched to VS 2015 I did also a refactoring of my code structure and libraries. I hope I solve this soon and can obfuscate the code as I could before with ConfuserEx. This was really cool, after a little bit of research of how to use it, it was easily integrated in the build and deployment process. Thank you guys for your work here.
Related to #315.
Hi yck1509
thank you a lot for ConfuserEx. I've already used ConfuserEx 3.0 successfully in my .NET 4.5 project which I compiled under Visual Studio 2013. Now I've switched to Visual Studio 2015 but after obfuscation either with 3.0 nor 5.0 a runtime error is produced in my dll: "Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Office...'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{xxx}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))".
Do you have any idea why this error comes up?
Thanks a lot.