I am working my way through the tutorial and getting an early error.
Details below.

When running the console displays this:

id
property
property
many-to-one
id
property
bag
bag

then the program stops at this command (this is in vb):

Return Fluently.Configure.Database( _
            SQLiteConfiguration.Standard.UsingFile(db)) _
            .Mappings(Function(m) m.FluentMappings _
            .AddFromAssemblyOf(Of TestRun.ProgramRun)()) _
            .ExposeConfiguration(AddressOf BuildSchema) _
                                    .BuildSessionFactory()


Error message is:

{"An invalid or incomplete configuration was used while creating a
SessionFactory. Check PotentialReasons collection, and InnerException
for more detail.  "}

Inner exception:  {"Could not compile the mapping document:
(XmlDocument)"}

Potential Reasons only says 'Count=0'

StackTrace:
   at NHibernate.Cfg.Configuration.LogAndThrow(Exception exception)
at NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument
doc)    at NHibernate.Cfg.Configuration.ProcessMappingsQueue()    at
NHibernate.Cfg.Configuration.AddDocumentThroughQueue(NamedXmlDocument
document)    at NHibernate.Cfg.Configuration.AddXmlReader(XmlReader
hbmReader, String name)    at
NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream,
String name)    at NHibernate.Cfg.Configuration.AddDocument
(XmlDocument doc, String name)    at
NHibernate.Cfg.Configuration.AddDocument(XmlDocument doc)    at
FluentNHibernate.PersistenceModel.Configure(Configuration cfg)    at
FluentNHibernate.Cfg.FluentMappingsContainer.Apply(Configuration
cfg)    at FluentNHibernate.Cfg.MappingConfiguration.Apply
(Configuration cfg)    at
FluentNHibernate.Cfg.FluentConfiguration.BuildConfiguration()

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibernate@googlegroups.com
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to