I have uploaded the file into the file pool that will throw an exception that say something like this...
NHibernate.MappingException was unhandled Message="An association from the table Permissions refers to an unmapped class: Rhino.Security.IUser" Source="NHibernate" The source is a modified version of the tutorial by Artur that can be found here http://weblogs.asp.net/arturtrosin/archive/2009/04/02/rhino-tools-rhino-security-guide.aspx The relevance part of this error come from this part of the source internal class NHibernateDbSchemaGeneration : INHibernateInitializationAware { public void BeforeInitialization() { } public void Configured(Configuration cfg) { //new SchemaExport(cfg).Create(true, true); var cfg1 = new Configuration(); cfg1.Configure(); //why is that if I am using my own Configuration file I get that error? var db = new SchemaExport(cfg1); db.Create(true, true); } public void Initialized(Configuration cfg, ISessionFactory sessionFactory) { } } The error only happen when I created my own configuration object and not when I use the cfg object that got passed in by the container. I looked in the watch windows and base on my limited knowledge they look very much the same. Is there something else that I need to do in creating a new configuration object? it probably something simple but fundamental that I am missing. This set up have worked for me before. I only got an error today when I try to incorporate Rhino into my project. -- You received this message because you are subscribed to the Google Groups "Rhino Tools Dev" 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/rhino-tools-dev?hl=en.
