View Full Version : [Need Help] Combining
levis
09-04-2007, 03:24 AM
I'm using spring.data.NHibernate but i want to combining with spring.web.extention (AJAX). I already create the web service (asmx file) but when i call the function inside the asmx it's return message "Object Reference Not Set To An Object". Inside the function, i use for return value like HibernateTemplate.GetAll but failed and the message "Page cannot be found". But I change to return value to fix value like "A" the function return the correct value. My question how to combing spring.data.NHiberndate with the AJAX? may I get some example?
Erich Eichinger
09-09-2007, 11:55 AM
Hi,
please check the Northwind example from the "examples" directory. It shows how to configure and use NHibernate combined with OpenSessionInView. Most of it should apply to WebServices as well.
To avoid the "Page cannot be found" message you should disable custom errors in your web.config (see MSDN docs (http://msdn2.microsoft.com/en-us/library/h0hfz6fc.aspx) for details).
-Erich
levis
09-13-2007, 11:31 AM
thanks for the information. I will check that
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.