Has anyone faced this error before. If i try Mvc2, NHibernate, and SQLite it works fine but it breaks with Mvc3
The IDbCommand and IDbConnection implementation in the assembly System.Data.SQLite could not be found. Ensure that the assembly System.Data.SQLite is located i开发者_如何学运维n the application directory or in the Global Assembly Cache. If the assembly is in the GAC, use element in the application configuration file to specify the full name of the assembly.
Have you seen this example blog post (if has the same set up you are describing) and has an example project you can look at.
- NHibernate 3.0
- SQL Lite
- MVC 3
- Fluent NHibernate
I quote from post:-
In order to use SQLite in our project, download the .NET driver from here. Reference the Dlls from your ASP.NET MVC 3 project
精彩评论