The full exception info is:
NHibernate.MappingException was caught
Message="Could not compile the mapping document:
NHibernate.Test.NHSpecificTest.NH1234.Mappings.hbm.xml"
Source="NHibernate"
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.AddResource(String path,
Assembly assembly)
at NHibernate.Test.TestCase.Configure() in D:\Projects
\NHibernate.Test\TestCase.cs:line 174
at NHibernate.Test.TestCase.TestFixtureSetUp() in D:\Projects
\NHibernate.Test\TestCase.cs:line 59
InnerException: System.InvalidOperationException
Message="Could not find the dialect in the configuration"
Source="NHibernate"
StackTrace:
at NHibernate.Dialect.Dialect.GetDialect(IDictionary`2
props)
at NHibernate.Cfg.Configuration.AddValidatedDocument
(NamedXmlDocument doc)
InnerException:
On Feb 19, 7:48 pm, Dario Quintana <[email protected]>
wrote:
> Make sure the hbm.xml files are marked as Embedded resource.
> Send it to us the inner exception, otherwise.
>
>
>
>
>
> On Thu, Feb 19, 2009 at 8:23 PM, JoAnnP38 <[email protected]> wrote:
>
> > Based on a suggestion from Fabio Maulo I am creating a unit test that
> > demonstrates a bug I might have found. First I created my own NUnit
> > test until I saw on nhforge.org that I should use the NHibernate.Test-
> > Lite project that is posted. So I transferred my test code to here and
> > now I get the following error when my mappings are being compiled:
>
> > NHibernate.Test.NHSpecificTest.NH1234.SampleTest (TestFixtureSetUp):
> > NHibernate.MappingException : Could not compile the mapping document:
> > NHibernate.Test.NHSpecificTest.NH1234.Mappings.hbm.xml
> > ----> System.InvalidOperationException : Could not find the dialect
> > in the configuration
>
> > What I don't understand is that the SQL dialect is specified in
> > App.config ("NHibernate.Dialect.MsSql2005Dialect"), so why am I
> > getting this error?
>
> --
> Dario Quintanahttp://darioquintana.com.ar- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---