Those exceptions are saying you haven't set the proxy factory factory...
UnableToLoadProxyFactoryFactoryException
Are you using the latest FNH? If so it should default to using the Castle
proxy factory, have you included the NHibernate.Castle.ByteCode.dll?

On Tue, Jul 28, 2009 at 9:17 AM, Tomk <[email protected]> wrote:

>
> I have also tried including the x86 dll and setting the build to x86.
> I then get a whole lot more info in my output screen (sorry for the
> large dump).
>
> Maybe this will help to troubleshoot.
>
> 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\Windows\assembly
> \GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll', Skipped
> loading symbols. Module is optimized and the debugger option 'Just My
> Code' is enabled.
> 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\Windows\assembly
> \GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities
> \9.0.0.0__b03f5f7f11d50a3a
> \Microsoft.VisualStudio.HostingProcess.Utilities.dll', Skipped loading
> symbols. Module is optimized and the debugger option 'Just My Code' is
> enabled.
> 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\Windows\assembly
> \GAC_MSIL\System.Windows.Forms
> \2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll', Skipped loading
> symbols. Module is optimized and the debugger option 'Just My Code' is
> enabled.
> 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\Windows\assembly
> \GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll', Skipped
> loading symbols. Module is optimized and the debugger option 'Just My
> Code' is enabled.
> 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\Windows\assembly
> \GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a
> \System.Drawing.dll', Skipped loading symbols. Module is optimized and
> the debugger option 'Just My Code' is enabled.
> 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\Windows\assembly
> \GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync
> \9.0.0.0__b03f5f7f11d50a3a
> \Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll', Skipped
> loading symbols. Module is optimized and the debugger option 'Just My
> Code' is enabled.
> 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\Windows\assembly
> \GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime
> \9.0.0.0__b03f5f7f11d50a3a
> \Microsoft.VisualStudio.Debugger.Runtime.dll', Skipped loading
> symbols. Module is optimized and the debugger option 'Just My Code' is
> enabled.
> 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\dev\temp
> \DBStandAloneSpike\ConsoleApplication1\bin\Debug
> \ConsoleApplication1.vshost.exe', Skipped loading symbols. Module is
> optimized and the debugger option 'Just My Code' is enabled.
> 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\Windows\assembly
> \GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll',
> Skipped loading symbols. Module is optimized and the debugger option
> 'Just My Code' is enabled.
> 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\Windows\assembly
> \GAC_MSIL\System.Xml.Linq
> \3.5.0.0__b77a5c561934e089\System.Xml.Linq.dll', Skipped loading
> symbols. Module is optimized and the debugger option 'Just My Code' is
> enabled.
> 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\Windows\assembly
> \GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll',
> Skipped loading symbols. Module is optimized and the debugger option
> 'Just My Code' is enabled.
> 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\Windows\assembly
> \GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll',
> Skipped loading symbols. Module is optimized and the debugger option
> 'Just My Code' is enabled.
> The thread 0x1fa8 has exited with code 0 (0x0).
> The thread 0x1dd8 has exited with code 0 (0x0).
> 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\dev\temp
> \DBStandAloneSpike\ConsoleApplication1\bin\Debug
> \ConsoleApplication1.exe', Symbols loaded.
> 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\dev\temp
> \DBStandAloneSpike\ConsoleApplication1\bin\Debug\NHibernate.dll'
> 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\dev\temp
> \DBStandAloneSpike\ConsoleApplication1\bin\Debug
> \FluentNHibernate.dll', Symbols loaded.
> 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\dev\temp
> \DBStandAloneSpike\ConsoleApplication1\bin\Debug\log4net.dll'
> 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\Windows\assembly
> \GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a
> \System.Configuration.dll', Skipped loading symbols. Module is
> optimized and the debugger option 'Just My Code' is enabled.
> 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\dev\temp
> \DBStandAloneSpike\ConsoleApplication1\bin\Debug\Iesi.Collections.dll'
> 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'xhrxgilp'
> 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'oj_fiksk'
> 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\dev\temp
> \DBStandAloneSpike\ConsoleApplication1\bin\Debug
> \System.Data.SQLite.dll'
> 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\Windows\assembly
> \GAC_32\System.Transactions
> \2.0.0.0__b77a5c561934e089\System.Transactions.dll', Skipped loading
> symbols. Module is optimized and the debugger option 'Just My Code' is
> enabled.
> 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\Windows\assembly
> \GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a
> \System.EnterpriseServices.dll', Skipped loading symbols. Module is
> optimized and the debugger option 'Just My Code' is enabled.
> A first chance exception of type
> 'NHibernate.Bytecode.UnableToLoadProxyFactoryFactoryException'
> occurred in NHibernate.dll
> A first chance exception of type
> 'FluentNHibernate.Cfg.FluentConfigurationException' occurred in
> FluentNHibernate.dll
> System.Transactions Critical: 0 : <TraceRecord xmlns="http://
> schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord"
> Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/
> TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/
> Unhandled</TraceIdentifier><Description>Unhandled exception</
> Description><AppDomain>ConsoleApplication1.vshost.exe</
>
> AppDomain><Exception><ExceptionType>FluentNHibernate.Cfg.FluentConfigurationException,
> FluentNHibernate, Version=0.1.0.535, Culture=neutral,
> PublicKeyToken=8aa435e3cb308880</ExceptionType><Message>An invalid or
> incomplete configuration was used while creating a SessionFactory.
> Check PotentialReasons collection, and InnerException for more detail.
>
> </Message><StackTrace>   at
> FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory() in d:
> \Builds\FluentNH\src\FluentNHibernate\Cfg\FluentConfiguration.cs:line
> 98
>   at Examples.FirstProject.Program.CreateSessionFactory() in C:\dev
> \temp\DBStandAloneSpike\ConsoleApplication1\Program.cs:line 82
>   at Examples.FirstProject.Program.Main() in C:\dev\temp
> \DBStandAloneSpike\ConsoleApplication1\Program.cs:line 20
>   at System.AppDomain._nExecuteAssembly(Assembly assembly, String[]
> args)
>   at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
> assemblySecurity, String[] args)
>   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly
> ()
>   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
>   at System.Threading.ExecutionContext.Run(ExecutionContext
> executionContext, ContextCallback callback, Object state)
>   at System.Threading.ThreadHelper.ThreadStart()</
>
> StackTrace><ExceptionString>FluentNHibernate.Cfg.FluentConfigurationException:
> An invalid or incomplete configuration was used while creating a
> SessionFactory. Check PotentialReasons collection, and InnerException
> for more detail.
>
>  ---&amp;gt;
> NHibernate.Bytecode.UnableToLoadProxyFactoryFactoryException: Unable
> to load type 'NHibernate.ByteCode.Castle.ProxyFactoryFactory,
> NHibernate.ByteCode.Castle' during configuration of proxy factory
> class.
> Possible causes are:
> - The NHibernate.Bytecode provider assembly was not deployed.
> - The typeName used to initialize the 'proxyfactory.factory_class'
> property of the session-factory section is not well formed.
>
> Solution:
> Confirm that your deployment folder contains one of the following
> assemblies:
> NHibernate.ByteCode.LinFu.dll
> NHibernate.ByteCode.Castle.dll ---&amp;gt;
> System.IO.FileNotFoundException: Could not load file or assembly
> 'NHibernate.ByteCode.Castle' or one of its dependencies. The system
> cannot find the file specified.
> File name: 'NHibernate.ByteCode.Castle'
>   at System.Reflection.Assembly._nLoad(AssemblyName fileName, String
> codeBase, Evidence assemblySecurity, Assembly locationHint,
> StackCrawlMark&amp;amp; stackMark, Boolean throwOnFileNotFound,
> Boolean forIntrospection)
>   at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
> codeBase, Evidence assemblySecurity, Assembly locationHint,
> StackCrawlMark&amp;amp; stackMark, Boolean throwOnFileNotFound,
> Boolean forIntrospection)
>   at System.Reflection.Assembly.InternalLoad(AssemblyName
> assemblyRef, Evidence assemblySecurity, StackCrawlMark&amp;amp;
> stackMark, Boolean forIntrospection)
>   at System.Reflection.Assembly.InternalLoad(String assemblyString,
> Evidence assemblySecurity, StackCrawlMark&amp;amp; stackMark, Boolean
> forIntrospection)
>   at System.Reflection.Assembly.Load(String assemblyString)
>   at NHibernate.Util.ReflectHelper.TypeFromAssembly
> (AssemblyQualifiedTypeName name, Boolean throwOnError)
>   at NHibernate.Util.ReflectHelper.ClassForName(String name)
>   at
> NHibernate.Bytecode.AbstractBytecodeProvider.SetProxyFactoryFactory
> (String typeName)
>
> === Pre-bind state information ===
> LOG: User = Tom-PC\Tom
> LOG: DisplayName = NHibernate.ByteCode.Castle
>  (Partial)
> LOG: Appbase =
> file:///C:/dev/temp/DBStandAloneSpike/ConsoleApplication1/bin/Debug/
> LOG: Initial PrivatePath = NULL
> Calling assembly : NHibernate, Version=2.1.0.4000, Culture=neutral,
> PublicKeyToken=aa95f207798dfdb4.
> ===
> LOG: This bind starts in default load context.
> LOG: No application configuration file found.
> 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.
>
>   --- End of inner exception stack trace ---
>   at
> NHibernate.Bytecode.AbstractBytecodeProvider.SetProxyFactoryFactory
> (String typeName)
>   at NHibernate.Cfg.Configuration.ConfigureProxyFactoryFactory()
>   at NHibernate.Cfg.Configuration.BuildSessionFactory()
>   at FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory()
> in d:\Builds\FluentNH\src\FluentNHibernate\Cfg
> \FluentConfiguration.cs:line 93
>   --- End of inner exception stack trace ---
>   at FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory()
> in d:\Builds\FluentNH\src\FluentNHibernate\Cfg
> \FluentConfiguration.cs:line 98
>   at Examples.FirstProject.Program.CreateSessionFactory() in C:\dev
> \temp\DBStandAloneSpike\ConsoleApplication1\Program.cs:line 82
>   at Examples.FirstProject.Program.Main() in C:\dev\temp
> \DBStandAloneSpike\ConsoleApplication1\Program.cs:line 20
>   at System.AppDomain._nExecuteAssembly(Assembly assembly, String[]
> args)
>   at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
> assemblySecurity, String[] args)
>   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly
> ()
>   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
>   at System.Threading.ExecutionContext.Run(ExecutionContext
> executionContext, ContextCallback callback, Object state)
>   at System.Threading.ThreadHelper.ThreadStart()
>
> </
>
> ExceptionString><InnerException><ExceptionType>NHibernate.Bytecode.UnableToLoadProxyFactoryFactoryException,
> NHibernate, Version=2.1.0.4000, Culture=neutral,
> PublicKeyToken=aa95f207798dfdb4</ExceptionType><Message>Unable to load
> type 'NHibernate.ByteCode.Castle.ProxyFactoryFactory,
> NHibernate.ByteCode.Castle' during configuration of proxy factory
> class.
> Possible causes are:
> - The NHibernate.Bytecode provider assembly was not deployed.
> - The typeName used to initialize the 'proxyfactory.factory_class'
> property of the session-factory section is not well formed.
>
> Solution:
> Confirm that your deployment folder contains one of the following
> assemblies:
> NHibernate.ByteCode.LinFu.dll
> NHibernate.ByteCode.Castle.dll</Message><StackTrace>   at
> NHibernate.Bytecode.AbstractBytecodeProvider.SetProxyFactoryFactory
> (String typeName)
>   at NHibernate.Cfg.Configuration.ConfigureProxyFactoryFactory()
>   at NHibernate.Cfg.Configuration.BuildSessionFactory()
>   at FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory()
> in d:\Builds\FluentNH\src\FluentNHibernate\Cfg
> \FluentConfiguration.cs:line 93</
>
> StackTrace><ExceptionString>NHibernate.Bytecode.UnableToLoadProxyFactoryFactoryException:
> Unable to load type 'NHibernate.ByteCode.Castle.ProxyFactoryFactory,
> NHibernate.ByteCode.Castle' during configuration of proxy factory
> class.
> Possible causes are:
> - The NHibernate.Bytecode provider assembly was not deployed.
> - The typeName used to initialize the 'proxyfactory.factory_class'
> property of the session-factory section is not well formed.
>
> Solution:
> Confirm that your deployment folder contains one of the following
> assemblies:
> NHibernate.ByteCode.LinFu.dll
> NHibernate.ByteCode.Castle.dll ---&amp;gt;
> System.IO.FileNotFoundException: Could not load file or assembly
> 'NHibernate.ByteCode.Castle' or one of its dependencies. The system
> cannot find the file specified.
> File name: 'NHibernate.ByteCode.Castle'
>   at System.Reflection.Assembly._nLoad(AssemblyName fileName, String
> codeBase, Evidence assemblySecurity, Assembly locationHint,
> StackCrawlMark&amp;amp; stackMark, Boolean throwOnFileNotFound,
> Boolean forIntrospection)
>   at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
> codeBase, Evidence assemblySecurity, Assembly locationHint,
> StackCrawlMark&amp;amp; stackMark, Boolean throwOnFileNotFound,
> Boolean forIntrospection)
>   at System.Reflection.Assembly.InternalLoad(AssemblyName
> assemblyRef, Evidence assemblySecurity, StackCrawlMark&amp;amp;
> stackMark, Boolean forIntrospection)
>   at System.Reflection.Assembly.InternalLoad(String assemblyString,
> Evidence assemblySecurity, StackCrawlMark&amp;amp; stackMark, Boolean
> forIntrospection)
>   at System.Reflection.Assembly.Load(String assemblyString)
>   at NHibernate.Util.ReflectHelper.TypeFromAssembly
> (AssemblyQualifiedTypeName name, Boolean throwOnError)
>   at NHibernate.Util.ReflectHelper.ClassForName(String name)
>   at
> NHibernate.Bytecode.AbstractBytecodeProvider.SetProxyFactoryFactory
> (String typeName)
>
> === Pre-bind state information ===
> LOG: User = Tom-PC\Tom
> LOG: DisplayName = NHibernate.ByteCode.Castle
>  (Partial)
> LOG: Appbase =
> file:///C:/dev/temp/DBStandAloneSpike/ConsoleApplication1/bin/Debug/
> LOG: Initial PrivatePath = NULL
> Calling assembly : NHibernate, Version=2.1.0.4000, Culture=neutral,
> PublicKeyToken=aa95f207798dfdb4.
> ===
> LOG: This bind starts in default load context.
> LOG: No application configuration file found.
> 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.
>
>   --- End of inner exception stack trace ---
>   at
> NHibernate.Bytecode.AbstractBytecodeProvider.SetProxyFactoryFactory
> (String typeName)
>   at NHibernate.Cfg.Configuration.ConfigureProxyFactoryFactory()
>   at NHibernate.Cfg.Configuration.BuildSessionFactory()
>   at FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory()
> in d:\Builds\FluentNH\src\FluentNHibernate\Cfg
> \FluentConfiguration.cs:line 93</
>
> ExceptionString><InnerException><ExceptionType>System.IO.FileNotFoundException,
> mscorlib, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Could not load
> file or assembly 'NHibernate.ByteCode.Castle' or one of its
> dependencies. The system cannot find the file specified.</
> Message><StackTrace>   at System.Reflection.Assembly._nLoad
> (AssemblyName fileName, String codeBase, Evidence assemblySecurity,
> Assembly locationHint, StackCrawlMark&amp;amp; stackMark, Boolean
> throwOnFileNotFound, Boolean forIntrospection)
>   at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
> codeBase, Evidence assemblySecurity, Assembly locationHint,
> StackCrawlMark&amp;amp; stackMark, Boolean throwOnFileNotFound,
> Boolean forIntrospection)
>   at System.Reflection.Assembly.InternalLoad(AssemblyName
> assemblyRef, Evidence assemblySecurity, StackCrawlMark&amp;amp;
> stackMark, Boolean forIntrospection)
>   at System.Reflection.Assembly.InternalLoad(String assemblyString,
> Evidence assemblySecurity, StackCrawlMark&amp;amp; stackMark, Boolean
> forIntrospection)
>   at System.Reflection.Assembly.Load(String assemblyString)
>   at NHibernate.Util.ReflectHelper.TypeFromAssembly
> (AssemblyQualifiedTypeName name, Boolean throwOnError)
>   at NHibernate.Util.ReflectHelper.ClassForName(String name)
>   at
> NHibernate.Bytecode.AbstractBytecodeProvider.SetProxyFactoryFactory
> (String typeName)</
> StackTrace><ExceptionString>System.IO.FileNotFoundException: Could not
> load file or assembly 'NHibernate.ByteCode.Castle' or one of its
> dependencies. The system cannot find the file specified.
> File name: 'NHibernate.ByteCode.Castle'
>   at System.Reflection.Assembly._nLoad(AssemblyName fileName, String
> codeBase, Evidence assemblySecurity, Assembly locationHint,
> StackCrawlMark&amp;amp; stackMark, Boolean throwOnFileNotFound,
> Boolean forIntrospection)
>   at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
> codeBase, Evidence assemblySecurity, Assembly locationHint,
> StackCrawlMark&amp;amp; stackMark, Boolean throwOnFileNotFound,
> Boolean forIntrospection)
>   at System.Reflection.Assembly.InternalLoad(AssemblyName
> assemblyRef, Evidence assemblySecurity, StackCrawlMark&amp;amp;
> stackMark, Boolean forIntrospection)
>   at System.Reflection.Assembly.InternalLoad(String assemblyString,
> Evidence assemblySecurity, StackCrawlMark&amp;amp; stackMark, Boolean
> forIntrospection)
>   at System.Reflection.Assembly.Load(String assemblyString)
>   at NHibernate.Util.ReflectHelper.TypeFromAssembly
> (AssemblyQualifiedTypeName name, Boolean throwOnError)
>   at NHibernate.Util.ReflectHelper.ClassForName(String name)
>   at
> NHibernate.Bytecode.AbstractBytecodeProvider.SetProxyFactoryFactory
> (String typeName)
>
> === Pre-bind state information ===
> LOG: User = Tom-PC\Tom
> LOG: DisplayName = NHibernate.ByteCode.Castle
>  (Partial)
> LOG: Appbase =
> file:///C:/dev/temp/DBStandAloneSpike/ConsoleApplication1/bin/Debug/
> LOG: Initial PrivatePath = NULL
> Calling assembly : NHibernate, Version=2.1.0.4000, Culture=neutral,
> PublicKeyToken=aa95f207798dfdb4.
> ===
> LOG: This bind starts in default load context.
> LOG: No application configuration file found.
> 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.
> </ExceptionString></InnerException></InnerException></Exception></
> TraceRecord>
> 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\Windows\assembly
> \GAC_MSIL\Microsoft.VisualStudio.DebuggerVisualizers
> \9.0.0.0__b03f5f7f11d50a3a
> \Microsoft.VisualStudio.DebuggerVisualizers.dll'
>
>
> On Jul 28, 9:58 am, Tomk <[email protected]> wrote:
> > I've set it to x64, and no, it didn't make a difference.
> >
> > Anyone that has an x64 Getting started example that I can use to
> > compare?
> >
> > On Jul 28, 9:41 am, James Gregory <[email protected]> wrote:
> >
> >
> >
> > > Is your application being built as x64 or Any CPU? Not that it should
> > > matter...
> >
> > > On Tue, Jul 28, 2009 at 8:36 AM, Tomk <[email protected]> wrote:
> >
> > > > Yes, I included the x64 version of 1.0.65.0
> >
> > > > On Jul 28, 9:27 am, Tuna Toksoz <[email protected]> wrote:
> > > > > Are you using the x64 version of SqlLite?
> >
> > > > > Tuna Toksöz
> > > > > Eternal sunshine of the open source mind.
> >
> > > >
> http://devlicio.us/blogs/tuna_toksozhttp://tunatoksoz.comhttp://twitt...
> >
> > > > > On Tue, Jul 28, 2009 at 10:26 AM, Tomk <[email protected]>
> wrote:
> >
> > > > > > I'm trying to get started with FNH and SQLite but I can't get the
> > > > > > demo's to work on my machine. My setup is Windows 7, x64 and have
> > > > > > tried both Gabriel Schenkers as the tutorial code from the wiki.
> >
> > > > > > I'm getting "An invalid or incomplete configuration was used
> while
> > > > > > creating a SessionFactory. Check PotentialReasons collection, and
> > > > > > InnerException for more detail."
> >
> > > > > > which is caused by "Message="The IDbCommand and IDbConnection
> > > > > > implementation in the assembly System.Data.SQLite could not be
> found.
> > > > > > Ensure that the assembly System.Data.SQLite is located in the
> > > > > > application directory or in the Global Assembly Cache. If the
> assembly
> > > > > > is in the GAC, use <qualifyAssembly/> element in the application
> > > > > > configuration file to specify the full name of the assembly."
> >
> > > > > > Now there seems to be an issue with the x86 version, but I have
> > > > > > included the 1.0.65.0, x64 version and tried that as well: same
> error.
> >
> > > > > > This is my CreateSessionFactory I use:
> > > > > >  return Fluently
> > > > > >                .Configure()
> > > > > >                .Database(SQLiteConfiguration.Standard.UsingFile
> > > > > > (DbFile))
> > > > > >                .Mappings(m =>
> > > > > > m.FluentMappings.AddFromAssemblyOf<Program>())
> > > > > >                .ExposeConfiguration(BuildSchema)
> > > > > >                .BuildSessionFactory();
> >
> > > > > > How can I get the SQLite db to work on x64 with FNH?- Hide quoted
> text
> > > > -
> >
> > > > > - Show quoted text -- Hide quoted text -
> >
> > > - Show quoted text -- Hide quoted text -
> >
> > - Show quoted text -
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to