Could not find the dialect in the configuration

127 views
Skip to first unread message

Alexander Rojas

unread,
Jul 14, 2015, 6:09:23 PM7/14/15
to castle-pro...@googlegroups.com
Helo guys, I am getting an error when I debug a stacked project, 

Could not find the dialect in the configuration


and marks this line  Castle.ActiveRecord.ActiveRecordStarter.Initialize

I really don't know whant is happening, my web.config is 

<?xml version="1.0"?>
<configuration>
  <configSections>
    <section name="activerecord" type="Castle.ActiveRecord.Framework.Config.ActiveRecordSectionHandler, Castle.ActiveRecord"/>
    <section name="urlrewritingnet" type="UrlRewritingNet.Configuration.UrlRewriteSection, UrlRewritingNet.UrlRewriter"  />
  </configSections>

  <connectionStrings/>

  <activerecord isWeb="true">
    <config>
      <add key="hibernate.connection.driver_class" value="NHibernate.Driver.SqlClientDriver"/>
      <add key="hibernate.dialect" value="NHibernate.Dialect.MsSql2012Dialect"/>
      <add key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider"/>
      <add key="hibernate.connection.connection_string" value="Data Source=OPEN_07\TRAV114;Database=SOTest;Trusted_Connection=True;"/>
    </config>
  </activerecord>

  <urlrewritingnet
    rewriteOnlyVirtualUrls="true"
    contextItemsPrefix="QueryString"
    defaultProvider="RegEx"
    <rewrites>
      <add name="RewriteForQuiz"
           virtualUrl="~/(.*).quiz"
           rewriteUrlParameter="ExcludeFromClientQueryString"
           destinationUrl="~/Item.aspx?id=$1"
           ignoreCase="true" />
      <add name="RewriteForUser"
           virtualUrl="~/(.*).user"
           rewriteUrlParameter="ExcludeFromClientQueryString"
           destinationUrl="~/Default.aspx?operatorProfile=$1"
           ignoreCase="true" />
      <add name="RewriteForTags"
           virtualUrl="~/(.*).tag"
           rewriteUrlParameter="ExcludeFromClientQueryString"
           destinationUrl="~/Default.aspx?tags=$1"
           ignoreCase="true" />
    </rewrites>
  </urlrewritingnet>

  <system.web>
    <pages>
      <controls>
        <add assembly="Ra" namespace="Ra.Widgets" tagPrefix="ra" />
        <add assembly="Ra" namespace="Ra.Behaviors" tagPrefix="ra" />
        <add assembly="Ra.Extensions" namespace="Ra.Extensions.Widgets" tagPrefix="ra" />
      </controls>
    </pages>
    <httpModules>
      <add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" />
    </httpModules>
    <compilation debug="true" />
    <authentication mode="Windows"/>
  </system.web>
</configuration>


PLEASE HELP ME

Mauricio Scheffer

unread,
Jul 14, 2015, 7:09:46 PM7/14/15
to castle-pro...@googlegroups.com
IIRC the "hibernate." prefix in config keys was dropped in NHibernate 2.x so it would be <add key="dialect" value="NHibernate.Dialect.MsSql2012Dialect"/> instead.



--
Mauricio

--
You received this message because you are subscribed to the Google Groups "Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to castle-project-u...@googlegroups.com.
To post to this group, send email to castle-pro...@googlegroups.com.
Visit this group at http://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages