These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Can't Compile Correct Mapping File on Remote Object
PostPosted: Wed Mar 17, 2010 3:34 pm 
Newbie

Joined: Sun Mar 15, 2009 2:14 pm
Posts: 1
Hello,
Im now developping one application in C# with Remoting objects and NHibernate.
So here is a image explaining how my projects are divided.

Image

Views Layer
This layer will be responsible for the users interface. This layer will always use the Controls Layer to create and edit objects;

Control Layer
This 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 Layer
Entity 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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.