Could not load file or assembly error on Merged Assembly

.NET obfuscator and automated error reporting

Could not load file or assembly error on Merged Assembly

Postby MidSilence » Thu Aug 26, 2010 3:05 pm


I've been used SA 4 with some plugin architeture with success but now using SA 5 I've got a "Could not load file or assembly" error.

The plugin dll (ie PlugIn.dll) exports an interfaced object (Obj1) that is called by main host exe (host.exe). Obj1 class is created using another classes referenced in plugin utils (PlugIn.Utils.dll). The SA project for PlugIn.dll uses the Merging feature to merge PlugIn.Utils.dll dependency into the resulting obfuscated dll assembly.

After loading resulting obfuscated PlugIn.dll on Host.exe, I made the call for Obj1 and get the results. In SA 4 the call works perfect but in SA 5 the Host.exe can't find the merged PlugIn.Utils.dll. The Stack shows me that the error occurs when Obj1 needs to find an Attribute class referenced on merged PlugIn.Utils.dll (at System.Reflection.RuntimeFieldInfo.GetCustomAttributes method).

Any ideas how to solve this?

Posts: 5
Joined: Wed Aug 25, 2010 3:39 pm

Postby nick.maidment » Tue Aug 31, 2010 11:51 am

Please could you send a screenshot of the error you're seeing to support @ red-gate . com with F0038367 in the subject line.

Posts: 74
Joined: Fri Jan 29, 2010 12:55 pm

Return to SmartAssembly 5

Who is online

Users browsing this forum: No registered users and 0 guests