--- Randall Svancara <[EMAIL PROTECTED]> wrote: > <?xml version="1.0" encoding="utf-8" ?> > <daoConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:noNamespaceSchemaLocation="DaoConfig.xsd">
NPetshop is very old. This is the correct daoConfig node: <daoConfig xmlns="http://ibatis.apache.org/dataAccess" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > <daoFactory assembly="NPetshop.Persistence.dll"> > <dao name="Recruiter" > > implementation="Test.Persistence.MapperDao.Recruiter.RecruiterSqlMapDao"/> > </daoFactory> <daoFactory> <dao interface="Foo.Data.IAccountDao, Foo.Data" implementation="Foo.Data.SqlMapDao.AccountDao, Foo.Data.SqlMapDao"/> </daoFactory> > <?xml version="1.0" encoding="utf-8"?> > <sqlMapConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:noNamespaceSchemaLocation="SqlMapConfig.xsd"> <sqlMapConfig xmlns="http://ibatis.apache.org/dataMapper" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > I have created the Service, Persistance and Domain classes just like > the > NPetshop example. In the ServiceConfig.cs , the instance.daoManager > is > null. How can I tell what is causing this error. How do I enable > more > verbose logging for debugging purposes. If you're using a single database, you probably don't need the DataAccess component. If that's the case, you just need Providers.config and SqlMap.config. IBatisNet supports a pluggable logging arhcitecture. I (most people?) use Log4Net. Here's an untested config file that routes log messages to System.Diagnostics.Trace which is routed to a text file. <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <sectionGroup name="iBATIS"> <section name="logging" type="IBatisNet.Common.Logging.ConfigurationSectionHandler, IBatisNet.Common" /> </sectionGroup> </configSections> <iBATIS> <logging> <logFactoryAdapter type="IBatisNet.Common.Logging.Impl.TraceLoggerFA, IBatisNet.Common"> <arg key="logLevel" value="All" /> <arg key="showDateTime" value="true" /> <arg key="showLogName" value="true" /> </logFactoryAdapter> </logging> </iBATIS> <system.diagnostics> <trace autoflush="true"> <listeners> <add name="textWriterTraceListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="C:\\IBatisNetLog.txt" /> </listeners> </trace> </system.diagnostics> </configuration> This is a good place to look for up to date example code: http://tinyurl.com/n3g4m http://svn.apache.org/viewcvs.cgi/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test - Ron

