Could not load file or assembly

.NET obfuscator and automated error reporting

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

Could not load file or assembly

Postby bloodviper » Wed Nov 30, 2011 3:53 am

Hi.

My Application used System.Data.Sqlite.dll.
when I use smartassembly 6.5 to obfuscate this application, it will crashed with the error below:

System.ArgumentException : Could not .Net Framework Data Provider.

System.Data.Sqllite.dll could not dependencies merging and dependencies
embedding.



How can i use System.Data.Sqlite.dll?
bloodviper
 
Posts: 1
Joined: Wed Nov 30, 2011 3:43 am

Postby Brian Donahue » Wed Nov 30, 2011 11:00 am

I only know this because some Red Gate products use this DLL, but AFAIK there is no reference to the SqlLite DLL in your app so it will not automatically merge/embed. You would normally have to distribute the dll separately unless you can do some hacking and create a reference to the dll in your assembly's metadata.

If that doesn't help please reply to the email we sent opening a support case with the SmartAssembly log file.
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am

Postby Brian Donahue » Wed Nov 30, 2011 11:53 am

Apparently you have to do some legwork to get a SmartAssembly log file, and only in 6.5 (previous versions had no log file).

You have to edit the SmartAssembly.config file and uncomment the Log4Net bits, then change the log level from TRACE to FULL.

Next time you run SA it will make a log file in %userprofile%\\appdata\\red gate\\smartassembly 6.
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am


Return to SmartAssembly 6

Who is online

Users browsing this forum: No registered users and 2 guests