I met similar problems before and all turned out to be syntax error in the xml files.
Try to open the xml files using IE, if any syntax, it will showed up. Hope this helps, Tony -----Original Message----- From: Edwin Castillo [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 12:35 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [email protected]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Problem with DataAccess Hi. I have a windows form application that uses the DataMapper and the DataAccess assemblies. When i execute it, the next error happens: System.NullReferenceException: object reference not set to an instance of an object. at IBatis.DataAccess.DaoManager.c(IDao dao). Making a debug, i realize the error happens in the function GetInstance(IDao dao) of the DaoManager class: the variable daoImplementation never takes a value so, when the code - return daoImplementation.DaoManager - is executed in the function GetInstance, the exception NullReferenceException is thrown. why it happens? I have the following doubts: 1. I'm not sure if the file dao.config are being read. 2. I'm not sure if the files properties.config, SqlMap.config and providers.config are being read. 3. is the problem about IDao interface that i'm using?. What kind of characteristics should have the interface that is passed to the function GetInstance(IDao dao)? 4. the framework DataMapper and DataAccess works fine in windows form applications? I test my program using only the DataMapper and it works fine. I've spent one week trying to correct the problem but nothing has worked. Please help me!!! Thanks in advice.

