Hello all, I've been trying to get this working using SQLite 1.0.66 (downloaded from NuGet), with this configuration:
andCode:appContext = new XmlApplicationContext( "assembly://Persistence/Persistence.Context/persistence-context.xml", "assembly://Sample/Sample.Context/sample-context.xml");
but I get always the following Error:Code:<db:provider id="DbProvider" provider="SQLite-1.0.66" connectionString="Data Source=MyData.db;Version=3;"/> ...
I'm using Spring 1.3.2.40943 (downloaded from NuGet).Code:Error thrown by a dependency of object 'SQLite-1.0.66' defined in 'assembly [Spring.Data, Version=1.3.2.40943, Culture=neutral, PublicKeyToken=65e474d141e25e07], resource [Spring.Data.Common.dbproviders.xml] line 1508' : Unsatisfied dependency expressed through constructor argument with index 2 of type [System.Type] : Could not convert constructor argument value [System.Data.SQLite.SQLiteConnection, System.Data.SQLite, Version=1.0.66.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139] to required type [System.Type] : Cannot convert property value of type [System.String] to required type [System.Type] for property ''. while resolving 'constructor argument with name dbmetadata' to 'Spring.Data.Common.DbMetadata#339C242' defined in 'assembly [Spring.Data, Version=1.3.2.40943, Culture=neutral, PublicKeyToken=65e474d141e25e07], resource [Spring.Data.Common.dbproviders.xml] line 1508'
Also, I tried so far using the latest version 1.0.80.0 with:
with this on the app.config:Code:<db:provider id="DbProvider" provider="SQLite-1.0.72" connectionString="Data Source=RealFileSyncData.db;Version=3;"/>
But the same result. Reading others threads, they said get ride of some 64bit versions and/or some nunit dependecies, but is not my case.Code:<dependentAssembly> <assemblyIdentity name="System.Data.SQLite" publicKeyToken="db937bc2d44ff139" culture="neutral"/> <bindingRedirect oldVersion="1.0.72" newVersion="1.0.80.0"/> </dependentAssembly>
I'm running on a 32 bit OS and Im making sure that every DLL is a 32bit.
Also, I did a Unit Test, using the Microsft Testing Framework and the Spring.Testing.Microsft, extending the test from AbstractDependencyInjectionSpringContextTests.
Now, this works, without any complain, it injects the facades I'm using and everything works ok.
So, when I'm using a standalone container, it won't work, giving the error message above.
Any thoughts about this?? Any help would be appreciated.


Reply With Quote
