Hi,
I'm new to [N]Hibernate. I've been playing with cats, adding complexity to my toy program. So far I've overcome all problems. There is an irritating set of warning messages that pop up when I build in MS Studio 2005 (SP1). They all relate to the namespace "urn:nhibernate-configuration-2.2" which prefixes the hibernate-specific elements added to the web.config file.
"Could not find schema information for the attribute/element urn:nhibernate-configuration-2.2: ...."
I googled and found a fix here:
http://fgheysels.blogspot.com/2006/04/n ... chema.html
But the only way the fix works is to put an include statement into DotNetConfig.xsd as the second line of the file, which makes the file unreadable by an XML editor.
I suspect there is another way to get rid of these messages.
I noticed an earlier post in this forum where a different syntax was suggested. I'm using the (working) syntax right from page 1 of the 1.2 Reference:
<configSections>
<section name="hibernate-configuration" type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate"/>
</configSections>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<property name="dialect">NHibernate.Dialect.MsSql2005Dialect</property>
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="connection.connection_string"> Server="localhost\SQLEXPRESS";initial catalog=quickstart;Integrated Security=SSPI</property>
<mapping assembly="Quickstart"/>
</session-factory>
</hibernate-configuration>
Thanks