Type could not be loaded by merged dll

.NET obfuscator and automated error reporting

Moderators: Luke Jefferson, melvyn.harbour, dom.smith

Type could not be loaded by merged dll

Postby anders.isacson » Thu Jul 03, 2014 10:51 am

When running my software obfuscated using SmartAssembly 6.8.0.121 I get the following runtime error (own translation from Swedish):

System.TypeLoadException: the type Microsoft.Office.Interop.Excel.AppEvents_Event could not be loaded from the assembly myExe, Version=7.2.0.4, Culture=neutral, PublicKeyToken=null. The type is marked as valid for type similarity, but it is not marked as public.

tack trace:
at myDll.Exports.ExportExcel.ExportResults(Boolean , String , DataGridViewDoubleCellFormats )
...

myDll.dll is merged into myExe.exe ExportExcel is a public class in myDll that uses Microsoft.Office.Interop.Excel. ExportResults is called by a backgroundWorker defined in myDll.

Before I did split my exe project into one exe project and several dll projects I did not have this problem (ExportResults was part of myExe.exe).

How can I solve this issue?
anders.isacson
 
Posts: 1
Joined: Thu Jul 03, 2014 9:24 am
Location: Gothenburg Sweden

Postby Chris.Allen » Mon Jul 07, 2014 3:29 pm

I'm a little confused why its trying to load a MS namespace type from your assembly- did you manage to merge a microsoft namespace into your executable?
Chris.Allen
 
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm


Return to SmartAssembly 6

Who is online

Users browsing this forum: No registered users and 0 guests