You need this line in your web.config
<configSections>
<section name="hibernate-configuration"
type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate" />
</configSections>
On Wednesday, July 22, 2015 at 4:05:16 PM UTC, JJ BB wrote:
>
> I'm must build a costum logger and I have added this line to
> nhibernate.cfg.xml (this a costumer requeriment: all NH entries must reside
> in nhibernate.cfg.xml):
>
> <property name="nhibernate-logger">NHExtensions.Log.CustomLogger,
> MyAssembly</property>
>
> But I get this exception at runtime:
>
> The 'name' attribute is invalid - The value 'nhibernate-logger' is invalid
> according to its datatype 'String' - The Enumeration constraint failed.
>
> How can I use "nhibernate-logger" in nhibernate.cfg.xml instead of
> app.config or web.config?
>
> Cheers
>
--
You received this message because you are subscribed to the Google Groups
"nhusers" 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/nhusers.
For more options, visit https://groups.google.com/d/optout.