Red Gate forums :: View topic - Could not load file or assembly error on Merged Assembly
Return to www.red-gate.com RSS Feed Available

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

Could not load file or assembly error on Merged Assembly

Search in SmartAssembly 5 forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
MidSilence



Joined: 25 Aug 2010
Posts: 5

PostPosted: Thu Aug 26, 2010 4:05 pm    Post subject: Could not load file or assembly error on Merged Assembly Reply with quote

Hello!

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?

Thanks!
Back to top
View user's profile Send private message
nick.maidment



Joined: 29 Jan 2010
Posts: 74

PostPosted: Tue Aug 31, 2010 12:51 pm    Post subject: Reply with quote

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

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. 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