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.
See the docs for reference:
https://github.com/castleproject/ActiveRecord/blob/master/docs/xml-configuration-reference.md



--
Mauricio

On Tue, Jul 14, 2015 at 10:58 PM, Alexander Rojas <[email protected]>
wrote:

> 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"
>     xmlns="http://www.urlrewriting.net/schemas/config/2006/07";>
>     <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
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected]
> .
> Visit this group at http://groups.google.com/group/castle-project-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to