Saturday, October 23, 2010

Troubleshooting NHibernate on MonoDevelop

If you received this kind of error when you run your MonoDevelop NHibernate program even though you already add the necessary dialect in your app.config file ...

Unhandled Exception: NHibernate.MappingException: Could not compile the mapping document: AwesomeNHibernate.RecordCompanyDatabase.hbm.xml ---> System.InvalidOperationException: Could not find the dialect in the configuration

..., just change your app.config's Copy to output directory property from Do not copy to Always copy

No comments:

Post a Comment