我做了一個C#項目,並能流利地配置SQLite的,甚至沒有添加引用System.Data.SQLite.dll。現在在嘗試VB.NET項目時,使用或不使用參考,我得到一個FluentNHibernate; SQLite的; FileNotFoundException異常(System.Data.SQLite)
FileNotFoundException: Could not load file or assembly 'System.Data.SQLite' or one of its dependencies. The system cannot find the file specified.
難道NHibernate的或FluentNHibernate尋找這個DLL(?)又是如何得出他們不看的參考?或者我錯過了什麼?
順便說一句,有成才叫「FusionLog」,其中說:
=== Pre-bind state information === LOG: User = PC\windowslogin LOG: DisplayName = System.Data.SQLite (Partial) LOG: Appbase = file:///(Project folder)./bin/Debug/ LOG: Initial PrivatePath = NULL Calling assembly : NHibernate, Version=3.0.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4. === LOG: This bind starts in default load context. LOG: Using application configuration file: (project folder/name).vshost.exe.Config LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config. LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: The same bind was seen before, and was failed with hr = 0x80070002.
謝謝!沒有意識到他們需要CopyLocal,並將其視爲False。 – bretddog 2011-02-06 22:51:28