Hello,
Im now developping one application in C# with Remoting objects and NHibernate.
So here is a image explaining how my projects are divided.
Views LayerThis layer will be responsible for the users interface. This layer will always use the Controls Layer to create and edit objects;
Control LayerThis is my persistence layer, here Ill have all the NHibernate configuration. This is my critic point, because ListSingleton Project will have only my RemoteObject. (Here I have the App.config file)
Models LayerEntity layer. Here I only have the entities classes and their respective mapping.
I’ve done a test solution with no remoting and only with the projects of the Control and Model Layers. It was all working ok.Now that I added the Views Layer and set the solution to start with projects Client and Server (Client calls the Control Layer and this would do a try to persist a object) I’m getting a error at :
Code:
Configuration cfg = new Configuration();
cfg.AddXmlFile("mapping/User.hbm.xml");
InnerException:
Code:
{"Could not compile the mapping document: mapping/User.hbm.xml"}
InnerException.InnerException:
Code:
{"Could not find the dialect in the configuration"}
StackTrace in the InnerException.InnerException
Code:
" em NHibernate.Dialect.Dialect.GetDialect(IDictionary`2 props)\r\n em NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument doc)"
But I know that there is no error in the mapping file because I used in my test application.