Could you show us your dao.config file?

--- Tech Cons <[EMAIL PROTECTED]> wrote:

> 
> I just started with .net. I used IBatis in Java without any issues.
> 
> My architechture is similar to Netpetshop application except that I
> dont have Presentation layer separated. I have included Presentation
> in the Web.
> 
> So, All the config files are in the web project's root. I am getting
> below error when trying to authenticate a user against SQL database.
> Anyone please suggest possible cause. Error is thrown while executing
> this code in Service Layer:
> 
> ConfigureHandler handler = new ConfigureHandler( ServiceConfig.Reset
> );
> 
> try
> 
> {
> 
> DaoManager.ConfigureAndWatch( handler ); // Here is where error is
> thrown
> 
> }
> 
> catch(Exception e)
> 
> {
> 
> Console.WriteLine(e.Message);
> 
> }
> 
> Error:
> 
> {"DaoManager could not configure DaoFactory. The DAO named \"User\"
> not found, failed. Cause: Object reference not set to an instance of
> an object." }
> 
> [IBatisNet.Common.Exceptions.ConfigurationException]:
> {IBatisNet.Common.Exceptions.ConfigurationException}
> 
> System.Object: {IBatisNet.Common.Exceptions.ConfigurationException}
> 
> _className: null
> 
> _COMPlusExceptionCode: -532459699
> 
> _exceptionMethod: <undefined value>
> 
> _exceptionMethodString: null
> 
> _helpURL: null
> 
> _HResult: -2146232832
> 
> _innerException: { }
> 
> _message: "DaoManager could not configure DaoFactory. The DAO named
> \"User\" not found, failed. Cause: Object reference not set to an
> instance of an object."
> 
> _remoteStackIndex: 0
> 
> _remoteStackTraceString: null
> 
> _source: null
> 
> _stackTrace: {System.Array}
> 
> _stackTraceString: null
> 
> _xcode: -532459699
> 
> _xptrs: 0
> 
> HelpLink: null
> 
> HResult: -2146232832
> 
> InnerException: { }
> 
> Message: "DaoManager could not configure DaoFactory. The DAO named
> \"User\" not found, failed. Cause: Object reference not set to an
> instance of an object."
> 
> Source: "IBatisNet.DataAccess"
> 
> StackTrace: " at
>
IBatisNet.DataAccess.Configuration.DomDaoManagerBuilder.ParseDaoFactory(XmlNode
> xmlContext, DaoManager daoManager)\r\n at
>
IBatisNet.DataAccess.Configuration.DomDaoManagerBuilder.GetContexts(XmlNode
> section)\r\n at
>
IBatisNet.DataAccess.Configuration.DomDaoManagerBuilder.GetConfig(XmlDocument
> daoConfig)\r\n at
>
IBatisNet.DataAccess.Configuration.DomDaoManagerBuilder.BuildDaoManagers(XmlDocument
> document, Boolean useConfigFileWatcher)\r\n at
> IBatisNet.DataAccess.DaoManager.ConfigureAndWatch(String fileName,
> ConfigureHandler configureDelegate)\r\n at
> IBatisNet.DataAccess.DaoManager.ConfigureAndWatch(ConfigureHandler
> configureDelegate)\r\n at
> Nukaladotnet.Service.ServiceConfig.GetInstance() in c:\\documents and
> settings\\sai\\my documents\\visual studio
> projects\\test1\\nukaladotnet.service\\serviceconfig.cs:line 35"
> 
> TargetSite: {System.Reflection.RuntimeMethodInfo}
> 
> 
>               
> ---------------------------------
>  Start your day with Yahoo! - make it your home page 

Reply via email to