POST QUESTIONS ON THE FORUM! COMMENTS HERE SHOULD ADD VALUE TO THE PAGE!
On 10 Jul 2007 02:43, frenzy776 wrote:
>While trying to get this quickstart to work I keep getting a
>MappingException: "XML validation error: Could not find schema
>information for the element 'urn:nhibernate-mapping-2.0:hibernate-
>mapping" when calling cfg.AddAssembly("DBSandbox").
>My mapping file looks like the following:
><hibernate-mapping xmlns="urn:nhibernate-mapping-2.0">
> <class name="DBSandbox.Movies.Movie, DBSandbox" table="Movies">
> <property name="Id" type="Int32"/>
> <property name="Title" type="String" length="50"/>
> <property name="Rating" type="String" length="10"/>
> <property name="Actors" type="String"/>
> </class>
></hibernate-mapping>
>Thanks in advance for any help.
Hi,
i am getting the same exception,
this is the code part from web.config file
<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.MsSql2000Dialect</property>
<property
name="connection.provider">NHibernate.Connection.DriverConnectionProvide
r</property>
<property
name="connection.connection_string">
Data Source=manik;Initial Catalog=HYBERNET;Persist Security
Info=True;User ID=sa;Password=
</property>
<mapping assembly="ExampleUser"/>
</session-factory>
</hibernate-configuration>
Exception message is
The 'urn:nhibernate-mapping-2.2:hibernet-mapping' element is not
declared
Thanks In advance |