Hello all you kick a** developers!
I am fairly new to NHibernate and I have .... a lot of problems right now! I can't get my app to connec to a firebird server!
For the moment the error message is:
Code:
Could not create the driver from NHibernate.Driver.FirebirdDriver
I am using Visual Studio (c++) 2005
Hibernate version: 1.2.0beta1
Full stack trace of any exception that occurs:" vid NHibernate.Connection.ConnectionProvider.ConfigureDriver(IDictionary settings)\r\n vid NHibernate.Connection.UserSuppliedConnectionProvider.Configure(IDictionary settings)\r\n vid NHibernate.Connection.ConnectionProviderFactory.NewConnectionProvider(IDictionary settings)\r\n vid NHibernate.Cfg.SettingsFactory.BuildSettings(IDictionary properties)\r\n vid NHibernate.Cfg.Configuration.BuildSettings()\r\n vid NHibernate.Cfg.Configuration.BuildSessionFactory()\r\n vid nHibernate.MainForm.button1_Click(Object sender, EventArgs e) i c:\\source\\nhibernate\\nhibernate\\mainform.h:rad 103\r\n vid System.Windows.Forms.Control.OnClick(EventArgs e)\r\n vid System.Windows.Forms.Button.OnClick(EventArgs e)\r\n vid System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)\r\n vid System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)\r\n vid System.Windows.Forms.Control.WndProc(Message& m)\r\n vid System.Windows.Forms.ButtonBase.WndProc(Message& m)\r\n vid System.Windows.Forms.Button.WndProc(Message& m)\r\n vid System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)\r\n vid System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)\r\n vid System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n vid System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)\r\n vid System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)\r\n vid System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)\r\n vid System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)\r\n vid System.Windows.Forms.Application.Run(Form mainForm)\r\n vid main(String[] args) i c:\\source\\nhibernate\\nhibernate\\nhibernate.cpp:rad 16"
Name and version of the database you are using:Firebird 1.5.0
my app.config (named nHibernate.exe.config) Code:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="nhibernate"
type="System.Configuration.NameValueSectionHandler, System, Version=1.0.5000.0,Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="log4net"
type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
</configSections>
<nhibernate>
<add
key="hibernate.cache.provider_class"
value="NHibernate.Cache.HashtableCacheProvider, NHibernate"
/>
<add
key="hibernate.cache.use_query_cache"
value="true"
/>
<add
key="hibernate.bytecode.provider"
value="lcg"
/>
<add
key="hibernate.prepare_sql"
value="false"
/>
<!--
The valid strings for Isolation can be found in the documentation for the System.Data.IsolationLevel
Enumeration documentation. Use the member names - not the values.
-->
<!-- -->
<add
key="hibernate.connection.isolation"
value="ReadCommitted"
/>
<!-- This is the Firebird configuration -->
<!-- -->
<add
key="hibernate.dialect"
value="NHibernate.Dialect.FirebirdDialect"
/>
<add
key="hibernate.connection.driver_class"
value="NHibernate.Driver.FirebirdDriver"
/>
<add
key="hibernate.connection.connection_string"
value="Server=localhost;Database=c:\\source\\hibernate_test.fdb;User=SYSDBA;password=masterkey;ServerType=1;Pooling=false"
/>
<add
key="hibernate.query.substitutions"
value="true 1, false 0"
/>
<!-- -->
</nhibernate>
<!-- This section contains the log4net configuration settings -->
<log4net debug="false">
<!-- Define some output appenders -->
<appender name="trace"
type="log4net.Appender.TraceAppender, log4net">
<layout type="log4net.Layout.PatternLayout,log4net">
<param name="ConversionPattern"
value="%d [%t] %-5p %c - %m%n" />
</layout>
</appender>
<appender name="console"
type="log4net.Appender.ConsoleAppender, log4net">
<layout type="log4net.Layout.PatternLayout,log4net">
<param name="ConversionPattern"
value="%d [%t] %-5p %c - %m%n" />
</layout>
</appender>
<appender name="rollingFile"
type="log4net.Appender.RollingFileAppender,log4net" >
<param name="File"
value="log.txt" />
<param name="AppendToFile"
value="false" />
<param name="RollingStyle"
value="Date" />
<param name="DatePattern"
value="yyyy.MM.dd" />
<param name="StaticLogFileName"
value="true" />
<layout type="log4net.Layout.PatternLayout,log4net">
<param name="ConversionPattern"
value="%d [%t] %-5p %c - %m%n" />
</layout>
</appender>
<!-- Setup the root category, add the appenders and set the default priority -->
<root>
<priority value="INFO" />
<appender-ref ref="console" />
</root>
<logger name="NHibernate.Bytecode.CodeDom">
<priority value="OFF" />
</logger>
<logger name="NHibernate.SQL">
<level value="DEBUG" />
</logger>
</log4net>
</configuration>
Thanks!