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

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

Could not load file or assembly

Search in SmartAssembly 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
bloodviper



Joined: 30 Nov 2011
Posts: 1

PostPosted: Wed Nov 30, 2011 3:53 am    Post subject: Could not load file or assembly Reply with quote

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?
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6580

PostPosted: Wed Nov 30, 2011 11:00 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6580

PostPosted: Wed Nov 30, 2011 11:53 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic 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