Hi,

I have a windows form application that uses the DataMapper and the DataAccess assemblies. I realize the variable daoManager never takes a value (is null) when the code: daoManager = DaoManager.GetInstance("SqlMapDao") is executed, reason why the application crashes. I check mi config files in a browser  and any syntax error was showed up. Furthermore, these are well placed. why it happens? how do i test that my dao.config file is being read? exists some windows form application example that works?. My dao.config file is:

<?xml version="1.0" encoding="utf-8"?>
<daoConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="DaoConfig.xsd">
       
    <context name="SqlMapDao">
    <properties resource="properties.config"/>
       
        <database>
            <provider name="sqlServer1.1"/>
            <dataSource name="WMI" connectionString="Persist Security Info=False;User ID=${userid};Pwd=${password};Initial Catalog=${database};Data Source=${datasource};Packet Size=4096;Workstation ID=localhost"/>
        </database>
       
        <daoSessionHandler id="SqlMap">
            <property name="resource" value="SqlMap.config"/>
        </daoSessionHandler>
               
        <daoFactory>
            <dao interface ="ibatis4.Interfaces.IPerson, ibatis4"
                implementation="ibatis4.Manejadores.MPerson, ibatis4"/>
        </daoFactory>
    </context>
</daoConfig>

any suggestion?

Thanks in advice...

Reply via email to